Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.
/ nip.io Public archive

Fork of nip.io to run a realhostip service

Notifications You must be signed in to change notification settings

resmo/nip.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7fb4446 · Dec 12, 2022

History

35 Commits
Dec 12, 2022
Jan 16, 2017
Dec 12, 2022
Dec 18, 2013
Dec 12, 2022
Dec 12, 2022

Repository files navigation

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 ghcr:

Quick test run with built-in config for example.com:

docker run -d -p 0.0.0.0:5353:53/tcp -p 0.0.0.0:5353:53/udp --name nip.io ghcr.io/resmo/nip-io:latest
dig @localhost -p5353 10-1-2-3.example.com

Provide your own config as volume:

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 ghcr.io/resmo/nip-io:latest

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