Fork of nip.io to run a realhostip service
Go to file
René Moser 6d7b7b8e0b
Update README.md
2021-04-14 10:30:20 +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 Allow ip subdomain part to be prefixed with dash 2020-05-28 12:27:45 +01: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 Update README.md 2021-04-14 10:30:20 +02: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:

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

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

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

As Docker Container

Run the Container from DcokerHub:

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 resmo/nip-io

Or Build the Image:

docker build -t 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