update default host to v6.buddy.wtf

master
Buddy Sandidge 5 years ago
parent cd689b8ebb
commit c1da44fe49

@ -0,0 +1,12 @@
module git.xbudex.com/buddy/update-dns
require (
github.com/dnsimple/dnsimple-go v0.22.0
github.com/google/go-querystring v1.0.0 // indirect
github.com/pkg/errors v0.8.1
github.com/urfave/cli v1.20.0
golang.org/x/net v0.0.0-20190110200230-915654e7eabc // indirect
golang.org/x/oauth2 v0.0.0-20190111185915-36a7019397c4 // indirect
)
go 1.13

@ -0,0 +1,23 @@
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
github.com/dnsimple/dnsimple-go v0.22.0 h1:McLDPeZcbrwRBHPge121vZxGnWNFYVX63P2ZAspl4hk=
github.com/dnsimple/dnsimple-go v0.22.0/go.mod h1:0FYu4qVNv/UcfZPNwa9zi68IkggJu3TIwM54D7rhmI4=
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/urfave/cli v1.20.0 h1:fDqGv3UG/4jbVl/QkFwEdddtEDjh/5Ov6X+0B/3bPaw=
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190110200230-915654e7eabc h1:Yx9JGxI1SBhVLFjpAkWMaO1TF+xyqtHLjZpvQboJGiM=
golang.org/x/net v0.0.0-20190110200230-915654e7eabc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/oauth2 v0.0.0-20190111185915-36a7019397c4 h1:Xi5aaGtyrfSB/gXS4Kal2NNpB7uzffL3yzWi2kByI18=
golang.org/x/oauth2 v0.0.0-20190111185915-36a7019397c4/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=

@ -9,8 +9,8 @@ import (
// IP address results // IP address results
type IP struct { type IP struct {
IP string `json:ip` IP string `json:"ip"`
Version string `json:version` Version string `json:"version"`
} }
// Client for getting IP address // Client for getting IP address

@ -8,7 +8,6 @@ import (
"git.xbudex.com/buddy/update-dns/dns" "git.xbudex.com/buddy/update-dns/dns"
"git.xbudex.com/buddy/update-dns/ip" "git.xbudex.com/buddy/update-dns/ip"
"github.com/pkg/errors" "github.com/pkg/errors"
"github.com/urfave/cli" "github.com/urfave/cli"
) )
@ -40,7 +39,7 @@ func main() {
app.Name = "update-dns" app.Name = "update-dns"
app.Usage = "update dns using dnsimple with public ip address" app.Usage = "update dns using dnsimple with public ip address"
app.UsageText = "update-dns [options] host" app.UsageText = "update-dns [options] host"
app.Version = "0.3.0" app.Version = "0.3.1"
app.Action = action app.Action = action
app.HideHelp = true app.HideHelp = true
@ -72,13 +71,13 @@ func main() {
cli.StringFlag{ cli.StringFlag{
Name: "get-ipv4-url", Name: "get-ipv4-url",
Value: "https://whatismyipv4.buddy.wtf/json", Value: "https://v4.buddy.wtf/json",
Usage: "url to use to get public IPv4 address", Usage: "url to use to get public IPv4 address",
}, },
cli.StringFlag{ cli.StringFlag{
Name: "get-ipv6-url", Name: "get-ipv6-url",
Value: "https://whatismyipv6.buddy.wtf/json", Value: "https://v6.buddy.wtf/json",
Usage: "url to use to get public IPv6 address", Usage: "url to use to get public IPv6 address",
}, },

Loading…
Cancel
Save