local-ip.sh/README.md
2022-10-30 18:59:37 +01:00

606 B

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