From 433d83e63678e4483e1d8af2e522c7b05c7d7909 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 21 Jan 2024 02:23:47 -0600 Subject: fix name changes new gadgets correct go mod updated paths Signed-off-by: Jeff Carr --- unix.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'unix.go') diff --git a/unix.go b/unix.go index 88f64ec..b6841ff 100644 --- a/unix.go +++ b/unix.go @@ -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() { } -- cgit v1.2.3