Go to file
2023-02-26 05:02:07 +01:00
.lego/accounts/acme-v02.api.letsencrypt.org/admin@local-ip.sh generate certs for *.local-ip.sh 2022-11-06 19:30:15 +01:00
xip go get -u 2023-02-26 05:02:07 +01:00
.gitignore generate certs for *.local-ip.sh 2022-11-06 19:30:15 +01: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 go get -u 2023-02-26 05:02:07 +01:00
go.sum go get -u 2023-02-26 05:02:07 +01: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 update readme 2022-10-30 18:59:37 +01: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, sslip.io and xip.io

Usage

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