Fork of nip.io to run a realhostip service
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
René Moser 6d7b7b8e0b
Update README.md
2 years ago
.github/workflows remove ci branch 4 years ago
docker add a Dockerfile 6 years ago
src Allow ip subdomain part to be prefixed with dash 3 years ago
.gitignore ignore build 9 years ago
Dockerfile update to latest minideb 5 years ago
README.md Update README.md 2 years ago

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