Fork of nip.io to run a realhostip service
Go to file
Rene Moser d132c4a438 remove ci branch 2019-09-16 17:33:59 +02:00
.github/workflows remove ci branch 2019-09-16 17:33:59 +02:00
docker add a Dockerfile 2017-01-16 12:10:08 +01:00
src Fixed regular expression. 2019-05-20 16:53:19 +00:00
.gitignore ignore build 2013-12-18 20:57:12 +00:00
Dockerfile update to latest minideb 2018-01-23 14:18:24 +01:00
README.md Support dot-separated addresses 2018-01-23 23:30:02 +09:00

README.md

Fork of nip.io

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 <anything>.<IP Address with dashes or dots>.nip.io to the corresponding <IP Address>, 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

LICENSE

Apache2 http://www.apache.org/licenses/LICENSE-2.0