ip.clerie.de/README.md

22 lines
879 B
Markdown
Raw Normal View History

2020-10-18 15:48:01 +02:00
# ip.clerie.de
Because any other "Whats my IP?"-tool sucks.
Try it here: https://ip.clerie.de
2020-10-18 21:31:56 +02:00
## About this software
2020-10-18 15:48:01 +02:00
It's just one nginx site config. Feel free to host it yourself. It's open-source.
2020-10-18 15:55:35 +02:00
ip.clerie.de is the HTML page with some JavaScript. This page needs an A and AAAA record in DNS.
ip4.clerie.de and ip6.clerie.de just returns the remote addr.
ip4.clerie.de has only an A record. ip6.clerie.de has only an AAAA record.
2020-10-18 21:31:56 +02:00
If you want host this yourself you have to replace all hardcoded domains. You can use the following sed command. Don't forget to change `IP.EXAMPLE.COM`, `IP4.EXAMPLE.COM` and `IP6.EXAMPLE.COM` to your own.
```
sed -e '/git.clerie.de/!s/ip.clerie.de/IP.EXAMPLE.COM/g;s/ip4.clerie.de/IP4.EXAMPLE.COM/g;s/ip6.clerie.de/IP6.EXAMPLE.COM/g' ip.clerie.de
```
The first match is to exclude the line with the link to the git repo from replacing.