diff options
| -rw-r--r-- | unix.go | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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 import ( @@ -39,3 +42,13 @@ func DumpPublicDNSZone(zone string) { 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) + } +} |
