diff options
Diffstat (limited to 'unix.go')
| -rw-r--r-- | unix.go | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -4,12 +4,12 @@ package linuxstatus -import ( - "os" - "os/exec" - "net" +import ( "bytes" "fmt" + "net" + "os" + "os/exec" "strings" "go.wit.com/log" @@ -34,7 +34,7 @@ func Escalate() { } // You need permission to do a zone transfer. Otherwise: -// dig +noall +answer +multiline lab.wit.com any +// dig +noall +answer +multiline lab.wit.com any // dig +all +multiline fire.lab.wit.com # gives the zonefile header (ttl vals) func DumpPublicDNSZone(zone string) { entries, err := net.LookupHost(zone) @@ -47,24 +47,24 @@ func DumpPublicDNSZone(zone string) { } func dumpIPs(host string) { - ips, err := net.LookupIP(host) - if err != nil { + ips, err := net.LookupIP(host) + if err != nil { log.Error(err, "dumpIPs() failed") - } - for _, ip := range ips { - log.Println(host, ip) - } + } + for _, ip := range ips { + log.Println(host, ip) + } } /* - check if ddclient is installed, working, and/or configured - https://github.com/ddclient/ddclient +check if ddclient is installed, working, and/or configured +https://github.com/ddclient/ddclient */ func ddclient() { } /* - check if ddupdate is installed, working, and/or configured +check if ddupdate is installed, working, and/or configured */ func ddupdate() { } |
