s/.dev/.sh/ *sigh*
This commit is contained in:
parent
01de8a29bc
commit
726e851059
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
# build output
|
# build output
|
||||||
local-ip.dev
|
local-ip.sh
|
||||||
|
12
README.md
12
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
|
It was inspired by [local-ip.co](http://local-ip.co) and
|
||||||
|
|
||||||
<!-- TODO: provide certs for ez local dev that requires HTTPS -->
|
<!-- 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
|
## Usage
|
||||||
|
|
||||||
```sh
|
```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
|
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
|
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
|
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
|
127.0.0.1
|
||||||
```
|
```
|
||||||
|
6
main.go
6
main.go
@ -4,12 +4,12 @@ import (
|
|||||||
"flag"
|
"flag"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
xip "local-ip.dev/xip"
|
xip "local-ip.sh/xip"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
zone = "local-ip.dev."
|
zone = "local-ip.sh."
|
||||||
nameservers = "ns.local-ip.dev."
|
nameservers = "ns1.local-ip.sh.,ns2.local-ip.sh."
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user