local-ip.sh/README.md

20 lines
490 B
Markdown
Raw Normal View History

2022-10-29 08:12:05 +00:00
# local-ip.sh
2022-10-27 21:55:37 +00:00
2022-10-29 08:12:05 +00:00
[local-ip.sh](https://www.local-ip.sh) is a DNS service that resolves IP addresses from a specifically formatted hostname.
2022-10-27 21:55:37 +00:00
It was inspired by [local-ip.co](http://local-ip.co) and
<!-- TODO: provide certs for ez local dev that requires HTTPS -->
## Usage
```sh
2022-10-29 08:12:05 +00:00
$ dig 10-0-1-29.my.local-ip.sh +short
2022-10-27 21:55:37 +00:00
10.0.1.29
2022-10-29 08:12:05 +00:00
$ dig app.10-0-1-29.my.local-ip.sh +short
2022-10-28 21:36:57 +00:00
10.0.1.29
2022-10-29 08:12:05 +00:00
$ dig foo.bar.10.0.1.29.my.local-ip.sh +short
2022-10-28 21:36:57 +00:00
10.0.1.29
2022-10-29 08:12:05 +00:00
$ dig 127.0.0.1.my.local-ip.sh +short
2022-10-27 21:55:37 +00:00
127.0.0.1
```