diff options
| author | Jeff Carr <[email protected]> | 2024-01-15 19:24:48 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-15 19:24:48 -0600 |
| commit | fdac7e7b8944d51b8207c1797edd0be9450de7b8 (patch) | |
| tree | 9e762c05ea6f716dc9434dae1e852630bd6c0ec5 /old/nsupdate.go | |
| parent | 94aa368cff322e667156571638a45bd3117a2739 (diff) | |
restore the files after garbage collectionv0.5.5
hopefully this actually is a valid git repo
Diffstat (limited to 'old/nsupdate.go')
| -rw-r--r-- | old/nsupdate.go | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/old/nsupdate.go b/old/nsupdate.go new file mode 100644 index 0000000..635de4c --- /dev/null +++ b/old/nsupdate.go @@ -0,0 +1,34 @@ +// inspired from: +// https://github.com/mactsouk/opensource.com.git +// and +// https://coderwall.com/p/wohavg/creating-a-simple-tcp-server-in-go + +package main + +import ( +) + +// ./go-nsupdate \ +// --tsig-algorithm=hmac-sha512 \ +// --tsig-secret="OWh5/ZHIyaz7B8J9m9ZDqZ8448Pke0PTpkYbZmFcOf5a6rEzgmcwrG91u1BHi1/4us+mKKEobDPLw1x6sD+ZJw==" \ +// -i eno2 farm001.lab.wit.com + +/* +func nsupdate() { + var tsigSecret string + log.Log(NET, "nsupdate() START") + cmd := "go-nsupdate --tsig-algorithm=hmac-sha512" + tsigSecret = os.Getenv("TIG_SECRET") + cmd += " --tig-secret=\"" + tsigSecret + "\"" + cmd += " -i wlo1 " + me.statusOS.GetHostname() + log.Log(NET, "nsupdate() RUN:", cmd) + + for s, t := range me.ipmap { + if (t.IsReal()) { + if (t.ipv6) { + log.Log(NET, "nsupdate() found real AAAA =", s, "on iface", t.iface.Name) + } + } + } +} +*/ |
