nip.io/README.md

54 lines
1.0 KiB
Markdown
Raw Normal View History

# 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
2017-12-05 07:32:08 +00:00
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
2017-12-05 07:32:08 +00:00
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
2017-12-05 07:32:08 +00:00
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
2017-12-05 07:32:08 +00:00
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
2017-01-16 11:10:08 +00:00
### 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