nip.io/README.md

61 lines
1.4 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
2019-09-16 21:38:31 +00:00
nip.io allows you to map any IP Address in the following DNS wildcard entries:
2019-09-16 21:38:31 +00:00
It works with Dashes `-`, perfect for wildcard TLS certs:
~~~
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
2019-09-16 21:38:31 +00:00
~~~
2019-09-16 21:38:31 +00:00
As well as Dot `.`:
~~~
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
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
~~~
2019-09-16 21:38:31 +00:00
See https://github.com/resmo/nip.io/blob/master/src/backend.conf.example for an example config
**Hint**: See the static CNAME `_acme-challenge=xyz.auth.example.com.` in the example, use it with https://github.com/joohoi/acme-dns for free Let's Encrypt TLS certs.
## INSTALL
2017-01-16 11:10:08 +00:00
### As docker container
Build the image:
~~~
docker build -t nip.io .
~~~
Run the container:
~~~
2019-09-16 21:38:31 +00:00
docker run -d -p 0.0.0.0:53:53/tcp -p 0.0.0.0:53:53/udp -v /data/backend.conf:/usr/local/bin/backend.conf --name nip.io nip.io
2017-01-16 11:10:08 +00:00
~~~
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