From 0103bbc594e6b63f7d918b3e700fb7a6d69a901a Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 7 May 2022 15:57:10 -0700 Subject: cmd: add a command to update fcuny.xyz I'm using fcuny.xyz as a domain to run a number of services on a host using the IP provided by Tailscale. Instead of manually updating the DNS configuration in the console every time I create a new subdomain, let's do this with a small program. The program query Tailscale API to get the IP address of the host `tahoe`, and then query the DNS API to see if anything is missing or is mis-configured. If it's the case, it will resolve the problems. --- go.mod | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 go.mod (limited to 'go.mod') diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..567819c --- /dev/null +++ b/go.mod @@ -0,0 +1,8 @@ +module golang.fcuny.net/world + +go 1.16 + +require ( + google.golang.org/api v0.78.0 + inet.af/netaddr v0.0.0-20211027220019-c74959edd3b6 +) -- cgit 1.4.1