summaryrefslogtreecommitdiff
path: root/unix.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-02-09 19:47:52 -0600
committerJeff Carr <[email protected]>2023-02-09 19:47:52 -0600
commit3959b6c328fc335475f2e9df8aaabbc9a1ca7c43 (patch)
tree4e657a9003bb94af8e2c89814f6cf6478dd1be9b /unix.go
parentd00a8f5cd32147370f8318b1e469558f44b6c81e (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.go15
1 files changed, 14 insertions, 1 deletions
diff --git a/unix.go b/unix.go
index b953c60..3cebd40 100644
--- a/unix.go
+++ b/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
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)
+ }
+}