Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Commit b028209

Browse files
authored
Update README.md
1 parent 5bf11d9 commit b028209

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

README.md

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
This is a fork of http://nip.io with some neat changes.
44

5-
## ABOUT
5+
## About
66

77
Dead simple wildcard DNS for any IP Address
88

@@ -20,41 +20,44 @@ As well as Dot `.`:
2020
10.0.0.1.nip.io maps to 10.0.0.1
2121
app.10.0.0.1.nip.io maps to 10.0.0.1
2222
customer1.app.10.0.0.1.nip.io maps to 10.0.0.1
23-
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
2423
~~~
2524

26-
See https://github.com/resmo/nip.io/blob/master/src/backend.conf.example for an example config
25+
See https://github.com/resmo/nip.io/blob/master/src/backend.conf.example for an example config-
2726

2827
**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.
2928

30-
## INSTALL
29+
## Install
3130

32-
### As docker container
31+
### As Docker Container
3332

34-
Build the image:
35-
~~~
33+
#### Build the Image:
34+
35+
```bash
3636
docker build -t nip.io .
37-
~~~
37+
```
3838

39-
Run the container:
40-
~~~
41-
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
42-
~~~
39+
#### Run the Container:
40+
41+
```bash
42+
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
43+
```
44+
45+
#### See the Logs:
46+
47+
```bash
4348

44-
See the logs:
45-
~~~
4649
docker logs -f nip.io
47-
~~~
50+
```
4851

49-
Test it:
50-
~~~
52+
#### Test it
53+
```bash
5154
dig 1-2-3-4.example.com +short @localhost
5255
1.2.3.4
5356

5457
dig foo.1-2-3-4.example.com +short @localhost
5558
1.2.3.4
56-
~~~
59+
```
5760

58-
## LICENSE
61+
## License
5962

6063
Apache2 http://www.apache.org/licenses/LICENSE-2.0

0 commit comments

Comments
 (0)