summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'unix.go')
-rw-r--r--unix.go28
1 files changed, 14 insertions, 14 deletions
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() {
}