add a struct for the machine
'me' is probably not a great variable name Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
798f7a7c15
commit
4c348438f3
15
unix.go
15
unix.go
|
@ -1,4 +1,7 @@
|
||||||
// This creates a simple hello world window
|
// Various Linux/Unix'y things
|
||||||
|
|
||||||
|
// https://wiki.archlinux.org/title/Dynamic_DNS
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -39,3 +42,13 @@ func DumpPublicDNSZone(zone string) {
|
||||||
log.Println(entry)
|
log.Println(entry)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func dumpIPs(host string) {
|
||||||
|
ips, err := net.LookupIP(host)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
for _, ip := range ips {
|
||||||
|
log.Println(host, ip)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue