diff options
| author | Jeff Carr <[email protected]> | 2024-01-21 02:23:47 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-21 02:23:47 -0600 |
| commit | 433d83e63678e4483e1d8af2e522c7b05c7d7909 (patch) | |
| tree | 7a6168fd19f27c5af9b241c45d0fe33ef9be21d7 /unix.go | |
| parent | fdac7e7b8944d51b8207c1797edd0be9450de7b8 (diff) | |
fix name changesv0.5.6
new gadgets
correct go mod
updated paths
Signed-off-by: Jeff Carr <[email protected]>
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() { } |
