Live data from Hacker News

DNS Toys (2022)

dns.toys

1–10 of 71 posts

Re: DNS Toys (2022)

#4
Odd that

dig A0.0,0.0/0.0,90.0.aerial @dns.toys

and

dig A0.0,0.0/90.0,0.0.aerial @dns.toys

both produce TXT "aerial distance = 10007.06 KM"

The equatorial circumference is 40,075.017 km (24,901.461 mi), while the polar circumference is 40,007.863 km (24,859.734 mi).

I guess there's no great harm in assuming the earth is hypothetically cow shaped, and it avoids that awkward series for shortest distance twixt points following an ellipsoids surface.

Re: DNS Toys (2022)

#5
This reminds me of a neat little trick I used back then to "reliably" compute IP address of my machines for a dynamic DNS utility I wrote for myself.

OpenDNS resolvers (such as resolver1.opendns.com) will resolve myip.opendns.com to your actual IP address. Whether you get A or AAAA records depends on your connection. Since the IP addresses for these resolvers tend to be anycast IPs, I also want to believe they are marginally faster than pinging some central HTTP service that can go down at any time. (Of course, OpenDNS can vanish at any time, too, but I find the risk of that more tolerable than the countless "what is my IP address?" HTTP services out there)

Anyway, I remember hearing before that DNS originally was intended to be used with a broader scope of data than just domain names (hence the existence of TXT records and the like). This website greatly demonstrates how much utility you can get out of DNS.

Re: DNS Toys (2022)

#6
I like it. I just wish that dig were installed on every platform. I'm always annoyed that it isn't available on Windows and when I checked Debian doesn't have it by default (though easily installable.) OpenBSD and Mac OS X have it though so that's good.

Re: DNS Toys (2022)

#9
post #4

Odd that dig A0.0,0.0/0.0,90.0.aerial @dns.toys and dig A0.0,0.0/90.0,0.0.aerial @dns.toys both produce TXT "aerial distance = 10007.06 KM" The equatorial circumference is 40,075.017 km (24,901.461 mi), while the polar circumference is 40,007.863 km (24,859.734 mi). I guess there's no great harm in assuming the earth is hypothetically cow shaped, and it avoids that awkward series for shortest distance twixt points fo…

Oh interesting - those circumferences are actually closer than I assumed they would be!

Re: DNS Toys (2022)

#10
post #5

This reminds me of a neat little trick I used back then to "reliably" compute IP address of my machines for a dynamic DNS utility I wrote for myself. OpenDNS resolvers (such as resolver1.opendns.com) will resolve myip.opendns.com to your actual IP address. Whether you get A or AAAA records depends on your connection. Since the IP addresses for these resolvers tend to be anycast IPs, I also want to believe they are ma…

Very nice idea. Seems way simpler than the STUN protocol.
Post reply on HN