Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is `to.` a valid domain name?

Tags:

networking

dns

In visiting http://to./ you are given a legitimate website.

Is to. a valid domain name then, despite not ending with a TLD and having a superfluous period? Why?

Being valid, what would its DNS hierarchy be?

like image 932
Humphrey Bogart Avatar asked Apr 21 '10 15:04

Humphrey Bogart


2 Answers

The final dot is part of the fully qualified domain name. More information in this article. Specifically:

It's a little-known fact, but fully-qualified (unambiguous) DNS domain names have a dot at the end. People running DNS servers usually know this (if you miss the trailing dots out, your DNS configuration is unlikely to work) but the general public usually doesn't. A domain name that doesn't have a dot at the end is not fully-qualified and is potentially ambiguous.

like image 131
T . Avatar answered Oct 03 '22 10:10

T .


to is the TLD of Tonga.

There is no spec that says that a domain name must have something other than a TLD; Tonga is the only TLD that has an A record for the TLD itself.

However, most browsers will not recognize a domain name that doesn't contain a period, so they use the full FQDN, with a trailing ..

like image 31
SLaks Avatar answered Oct 03 '22 10:10

SLaks