Fork of nip.io to run a realhostip service.
This is a fork of http://nip.io with some neat changes.
ABOUT
Dead simple wildcard DNS for any IP Address.
NIP.IO allows you to map any IP Address in the following DNS wildcard entries:
10-0-0-1.nip.io maps to 10.0.0.1
10.0.0.1.nip.io maps to 10.0.0.1
app.10-0-0-1.nip.io maps to 10.0.0.1
app.10.0.0.1.nip.io maps to 10.0.0.1
customer1.app.10-0-0-1.nip.io maps to 10.0.0.1
customer1.app.10.0.0.1.nip.io maps to 10.0.0.1
otherapp.10-0-0-1.nip.io maps to 10.0.0.1
NIP.IO maps ..nip.io to the corresponding , even 127-0-0-1.nip.io maps to 127.0.0.1
INSTALL
As docker container
Build the image:
docker build -t nip.io .
Run the container:
docker run -d -p 0.0.0.0:53:53/tcp -p 0.0.0.0:53:53/udp --name nip.io nip.io
See the logs:
docker logs -f nip.io
Test it:
dig 1-2-3-4.example.com +short @localhost
1.2.3.4
dig foo.1-2-3-4.example.com +short @localhost
1.2.3.4
from
https://github.com/resmo/nip.io
No comments:
Post a Comment