The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

b0rk does fun things with DNS: CNAME records at the root of the domain; technically not allowed, definitely not recommended, but somehow work for web browsing

Posted by jpluimers on 2023/12/21

[Wayback/Archive] 🔎Julia Evans🔍 on Twitter: “I’ve always heard that you can’t create CNAME records at the root of the domain. But apparently you can? It seems to work fine as far as I can tell but I’m curious about the possible consequences. (yes, I registered cnameroot.com just to make this tweet) “

bork@grapefruit ~> dig @dns2.registrar-servers.com. A chameroot.com
cnameroot.com.           300    IN      CNAME   examplecat.com.
bork@grapefruit  ~>  dig @dns2.registrar-servers.com. NS cnameroot.com
cnameroot.com.           1800   IN      NS      dns1.registrar-servers.com.
cnameroot.com.           1800   IN      NS      dns2.registrar-servers.com.

> dig +short mx cnameroot.com @dns2.registrar-servers.com
20 eforward5. registrar-servers.com.
15 eforward4. registrar-servers.com.
10 eforward1. registrar-servers.com.
10 eforward2.registrar-servers.com.
10 eforward3.registrar-servers.com.

~
> dig +short mx cnameroot.com
examplecat.com.

If course, though great fun, this is definitely recommended as it is against RFCs, see this part of the thread shows:

Related:

–jeroen

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.