nip.io/README.md

65 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

# Fork of nip.io
This is a fork of http://nip.io with some neat changes.
2019-09-16 21:43:46 +00:00
## 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
~~~
2019-09-16 21:43:46 +00:00
See https://github.com/resmo/nip.io/blob/master/src/backend.conf.example for an example config-
2019-09-16 21:38:31 +00:00
**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.
2019-09-16 21:43:46 +00:00
## Install
2019-09-16 21:43:46 +00:00
### As Docker Container
2017-01-16 11:10:08 +00:00
2021-04-14 08:30:20 +00:00
#### Run the Container from DcokerHub:
2019-09-16 21:43:46 +00:00
```bash
2021-04-14 08:30:20 +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 resmo/nip-io
2019-09-16 21:43:46 +00:00
```
2017-01-16 11:10:08 +00:00
2021-04-14 08:30:20 +00:00
#### Or Build the Image:
2019-09-16 21:43:46 +00:00
```bash
2021-04-14 08:30:20 +00:00
docker build -t nip.io .
2019-09-16 21:43:46 +00:00
```
#### See the Logs:
```bash
2017-01-16 11:10:08 +00:00
docker logs -f nip.io
2019-09-16 21:43:46 +00:00
```
2017-01-16 11:10:08 +00:00
2019-09-16 21:43:46 +00:00
#### Test it
```bash
2017-01-16 11:10:08 +00:00
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
2019-09-16 21:43:46 +00:00
```
2019-09-16 21:43:46 +00:00
## License
Apache2 http://www.apache.org/licenses/LICENSE-2.0