mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
15 lines
228 B
Go
15 lines
228 B
Go
package security
|
|
|
|
import (
|
|
"os/exec"
|
|
|
|
"github.com/senorprogrammer/wtf/wtf"
|
|
)
|
|
|
|
const dnsCmd = "networksetup"
|
|
|
|
func DnsServers() string {
|
|
cmd := exec.Command(dnsCmd, "-getdnsservers", "Wi-Fi")
|
|
return wtf.ExecuteCommand(cmd)
|
|
}
|