Go to file
2022-10-30 00:14:03 +02:00
xip handle SOA 2022-10-30 00:14:03 +02:00
.gitignore s/.dev/.sh/ *sigh* 2022-10-29 10:12:05 +02:00
Dockerfile Initial commit 2022-10-27 23:19:23 +02:00
fly.toml Initial commit 2022-10-27 23:19:23 +02:00
go.mod s/.dev/.sh/ *sigh* 2022-10-29 10:12:05 +02:00
go.sum Initial commit 2022-10-27 23:19:23 +02:00
LICENSE Initial commit 2022-10-27 23:19:23 +02:00
main.go s/.dev/.sh/ *sigh* 2022-10-29 10:12:05 +02:00
README.md s/.dev/.sh/ *sigh* 2022-10-29 10:12:05 +02:00

local-ip.sh

local-ip.sh is a DNS service that resolves IP addresses from a specifically formatted hostname.
It was inspired by local-ip.co and

Usage

$ 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