diff options
author | Franck Cuny <franck@fcuny.net> | 2022-05-07 15:57:10 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-05-07 15:57:10 -0700 |
commit | 0103bbc594e6b63f7d918b3e700fb7a6d69a901a (patch) | |
tree | 4224dbf9db47b50ad6edeabb0f1d0887d060b7ea /go.mod | |
parent | repo: add support for direnv (diff) | |
download | world-0103bbc594e6b63f7d918b3e700fb7a6d69a901a.tar.gz |
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.
Diffstat (limited to '')
-rw-r--r-- | go.mod | 8 |
1 files changed, 8 insertions, 0 deletions
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 +) |