Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is `domain dot tld` the same as `domain dot tld dot` ? (dot after TLD)

Tags:

dns

tld

I seem to understand that a dot after the TLD doesn't matter, eg: http://example.com/somepage/ == http://example.com./somepage/ (notice the dot after the TLD)

My question is: is this always the case? Or is it DNS or anything dependent? In other words, will an extra dot after the domain work for everybody, no matter what the setup and the domain? (example.com., localhost., mycomputer.lan., 127.0.0.1., etc...)

Bonus question: why is that extra dot allowed?

Thanks

like image 731
Ozh Avatar asked Oct 26 '14 15:10

Ozh


People also ask

What is the part after domain called?

Top-level domain (TLD) TLDs, more commonly known as domain extensions, are found at the end of your domain name.

What is another name for TLD?

A TLD or top-level domain is the last part of your domain name. It is sometimes also known as a domain name suffix as your domain name ends with the TLD. A TLD is assigned and overseen by The Internet Corporation for Assigned Names and Numbers or ICANN.

What does domain name TLD mean?

A TLD (top-level domain) is the most generic domain in the Internet's hierarchical DNS (domain name system). A TLD is the final component of a domain name, for example, "org" in developer.mozilla.org . ICANN (Internet Corporation for Assigned Names and Numbers) designates organizations to manage each TLD.


1 Answers

The extra dot, after the top level domain name, for example com. or gov. , is valid and optional as per DNS specifications. More details here.

However, this must not be used with anything that is not a domain name and that does not require a domain lookup. In your examples, it cannot be used with IP address and host name for above reasons. The optional last dot is guaranteed to work with any domain name. If mycom.lan is a domain name, where you are hosting a zone named "LAN" in your intranet, then the trailing dot can be used.

Bonus Answer: the last dot represents the "root zone". :), which must be looked up to find the nameservers of top level domains like com, gov, org, etc. Its however optional to type it. You can try this in the browser URLs.

like image 113
Manish Maheshwari Avatar answered Sep 19 '22 09:09

Manish Maheshwari