From 726e8510591ef33141ffee341ba586cc54692547 Mon Sep 17 00:00:00 2001 From: m5r Date: Sat, 29 Oct 2022 10:12:05 +0200 Subject: [PATCH] s/.dev/.sh/ *sigh* --- .gitignore | 2 +- README.md | 12 ++++++------ go.mod | 2 +- main.go | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index a1c0597..00ce5fb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ # build output -local-ip.dev +local-ip.sh diff --git a/README.md b/README.md index 773bd40..637e032 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# local-ip.dev +# local-ip.sh -[local-ip.dev](https://www.local-ip.dev) is a DNS service that resolves IP addresses from a specifically formatted hostname. +[local-ip.sh](https://www.local-ip.sh) is a DNS service that resolves IP addresses from a specifically formatted hostname. It was inspired by [local-ip.co](http://local-ip.co) and @@ -8,12 +8,12 @@ It was inspired by [local-ip.co](http://local-ip.co) and ## Usage ```sh -$ dig 10-0-1-29.my.local-ip.dev +short +$ dig 10-0-1-29.my.local-ip.sh +short 10.0.1.29 -$ dig app.10-0-1-29.my.local-ip.dev +short +$ dig app.10-0-1-29.my.local-ip.sh +short 10.0.1.29 -$ dig foo.bar.10.0.1.29.my.local-ip.dev +short +$ dig foo.bar.10.0.1.29.my.local-ip.sh +short 10.0.1.29 -$ dig 127.0.0.1.my.local-ip.dev +short +$ dig 127.0.0.1.my.local-ip.sh +short 127.0.0.1 ``` diff --git a/go.mod b/go.mod index b6babdf..279aef0 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module local-ip.dev +module local-ip.sh go 1.19 diff --git a/main.go b/main.go index 0a0a7cb..144382a 100644 --- a/main.go +++ b/main.go @@ -4,12 +4,12 @@ import ( "flag" "strings" - xip "local-ip.dev/xip" + xip "local-ip.sh/xip" ) const ( - zone = "local-ip.dev." - nameservers = "ns.local-ip.dev." + zone = "local-ip.sh." + nameservers = "ns1.local-ip.sh.,ns2.local-ip.sh." ) func main() {