Re:Shortest URLs on the Internet
by jamespwilliams on Sunday September 11, 2022 @04:46PM
(#32803116)
Oh interesting, thanks! I fixed the script and ran the TLD list through again, in case this meant I missed some, but none of the affected TLDs have A records. I'll update my post to mention your comment.
There was a post recently about some of these TLDs: https://news.ycombinator.com/item?id=32094645
Re:Shortest URLs on the Internet
by N6VjeuHbGSwMN9e on Sunday September 11, 2022 @05:18PM
(#32803359)
Or you could just make it a FQDN: `dig @8.8.8.8 MX.`
I was also curious about this. It turns out that it's because dig interprets some TLDs as DNS record types (MD, MG, MR, MX) or DNS classes (IN and CH) of the same name! Not sure why, but when given only a type or class (without a domain name), dig actually queries for a list of the root servers, which explains the strange results. Looks like using the -q option to specify the domain name works around this.