diff options
| author | Jeff Carr <[email protected]> | 2023-02-09 19:47:52 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-02-09 19:47:52 -0600 |
| commit | 4c348438f3b43e3de5c85a5fc8064cd0914f1fa2 (patch) | |
| tree | f74e7a4876529019c2b4c42b4902a926ea8b53ca /unix.go | |
| parent | 798f7a7c15a3e488233f576fe00ba5bc8c1e7b12 (diff) | |
add a struct for the machinev0.0.1
'me' is probably not a great variable name
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'unix.go')
| -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) + } +} |
