update readme
This commit is contained in:
parent
cb0b3a8a3f
commit
c9399a3b21
20
README.md
20
README.md
@ -1,19 +1,21 @@
|
||||
# local-ip.sh
|
||||
|
||||
[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), [sslip.io](https://sslip.io) and [xip.io](https://xip.io)
|
||||
|
||||
<!-- TODO: provide certs for ez local dev that requires HTTPS -->
|
||||
|
||||
## Usage
|
||||
|
||||
```sh
|
||||
$ dig 10-0-1-29.my.local-ip.sh +short
|
||||
10.0.1.29
|
||||
$ 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.sh +short
|
||||
10.0.1.29
|
||||
$ dig 127.0.0.1.my.local-ip.sh +short
|
||||
127.0.0.1
|
||||
go run ./main.go
|
||||
|
||||
dig @localhost 10-0-1-29.my.local-ip.sh +short
|
||||
# 10.0.1.29
|
||||
dig @localhost app.10-0-1-29.my.local-ip.sh +short
|
||||
# 10.0.1.29
|
||||
dig @localhost foo.bar.10.0.1.29.my.local-ip.sh +short
|
||||
# 10.0.1.29
|
||||
dig @localhost 127.0.0.1.my.local-ip.sh +short
|
||||
# 127.0.0.1
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user