s/.dev/.sh/ *sigh*

This commit is contained in:
m5r 2022-10-29 10:12:05 +02:00
parent 01de8a29bc
commit 726e851059
No known key found for this signature in database
GPG Key ID: 5BC847276DD5DDEA
4 changed files with 11 additions and 11 deletions

2
.gitignore vendored
View File

@ -1,2 +1,2 @@
# build output
local-ip.dev
local-ip.sh

View File

@ -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
<!-- TODO: provide certs for ez local dev that requires HTTPS -->
@ -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
```

2
go.mod
View File

@ -1,4 +1,4 @@
module local-ip.dev
module local-ip.sh
go 1.19

View File

@ -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() {