From 4c8e7741f12ae0d6265e324fff383d45a2215aa9 Mon Sep 17 00:00:00 2001 From: Brian Cunnie Date: Sat, 27 Nov 2021 19:03:40 -0800 Subject: [PATCH] Use `@ns.sslip.io` to determine your IP lookup It makes for simpler instructions than listing the three nameservers & which ones have IPv6. --- k8s/document_root/index.html | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/k8s/document_root/index.html b/k8s/document_root/index.html index 1380306..35a5157 100644 --- a/k8s/document_root/index.html +++ b/k8s/document_root/index.html @@ -113,10 +113,10 @@ src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"> own the domain “example.com”, and you want your subdomain, “xip.example.com” to have xip.io-style features. To accomplish this, set the following three DNS servers as NS records for the subdomain “xip.example.com”

@@ -189,17 +189,15 @@ dig @localhost 127-0-0-1.sslip.io +short # returns "127.0.0.1"

Experimental Features

Experimental features can change; don't depend on them.

Determining Your External IP Address via DNS Lookup

-

You can use sslip.io's DNS servers (ns-aws.sslip.io, ns-azure.sslip.io, - ns-gce.sslip.io) to determine your public IP address by querying the TXT record of - ip.sslip.io. If you're curious about your public IPv6 address, use the DNS server - ns-aws.sslip.io, for it has both IPv4 and IPv6 addresses:

+

You can use sslip.io's DNS servers (ns.sslip.io) to determine your public IP address by querying + the TXT record of ip.sslip.io:

-dig @ns-aws.sslip.io txt ip.sslip.io +short    # sample reply "2607:fb90:464:ae1e:ed60:29c:884c:4b52"
-dig @ns-aws.sslip.io txt ip.sslip.io +short -4 # forces IPv4 lookup; sample reply "172.58.35.231"
-dig @ns-aws.sslip.io txt ip.sslip.io +short -6 # forces IPv6 lookup; sample reply "2607:fb90:464:ae1e:ed60:29c:884c:4b52"
+dig @ns.sslip.io txt ip.sslip.io +short # sample reply "2607:fb90:464:ae1e:ed60:29c:884c:4b52" +dig @ns.sslip.io txt ip.sslip.io +short -4 # forces IPv4 lookup; sample reply "172.58.35.231" +dig @ns.sslip.io txt ip.sslip.io +short -6 # forces IPv6 lookup; sample reply "2607:fb90:464:ae1e:ed60:29c:884c:4b52"

This feature was inspired by Google's DNS lookup, i.e. dig txt o-o.myaddr.l.google.com @8.8.8.8 +short. There are also popular HTTP-based services for determining your public IP address: