diff --git a/README.md b/README.md index d0d4b46..786141c 100644 --- a/README.md +++ b/README.md @@ -4,18 +4,18 @@ A simple PHP script to tell a visitor's IP address and more information. This fi ## Plain return -Example: [/][https://ip.nandus.net] +Example: [/][https://ip.snapdns.eu] When the script is properly installed, one can visit/curl/wget the website to just receive one's public IP address. This is very useful in combination with other scripts (check out my snap-dyndns packages for example). ``` -max@laptop ~> wget -qO - ip.nandus.net +max@laptop ~> curl -Ls ip.snapdns.eu 91.62.68.1 ``` ## Detailed return -Example: [/myself](https://ip4.nandus.net/myself) +Example: [/detailed](https://ip4.snapdns.eu/detailed) Given the location of the script is `ip.example.com`, you can also receive more information about the HTTP headers or the IP's reverse lookup: @@ -27,7 +27,7 @@ HTTP_CLIENT_IP: HTTP_X_FORWARDED: HTTP_FORWARDED_FOR: HTTP_FORWARDED: -HTTP_HOST: ip4.nandus.net +HTTP_HOST: ip4.snapdns.eu HTTP_URI: HOSTNAME: p5B3E4401.dip0.t-ipconnect.de @@ -38,8 +38,8 @@ Additionally you will be given a whois output of your IP. ## Custom DNS and IP lookup -Example DNS: [/dns/example.com](https://ip.nandus.net/dns/example.com) -Example IP: [/ip/8.8.8.8](https://ip.nandus.net/ip/8.8.8.8) +* Example DNS: [/dns/example.com](https://ip.snapdns.eu/dns/example.com) +* Example IP: [/ip/8.8.8.8](https://ip.snapdns.eu/ip/8.8.8.8) You can also freely look up any hostname or IP. For domains, this will return a useful list of different DNS records (A, AAAA, NS, MX, TXT, SOA etc). diff --git a/config.php.sample b/config.php.sample index bd50f5f..e0eb985 100644 --- a/config.php.sample +++ b/config.php.sample @@ -1,8 +1,8 @@ 'ip4.nandus.net', - 'ip6domain' => 'ip6.nandus.net', + 'ip4domain' => 'ip4.snapdns.eu', + 'ip6domain' => 'ip6.snapdns.eu', 'detailed_uri' => 'detailed', );