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
Top-level domain (TLD) TLDs, more commonly known as domain extensions, are found at the end of your domain name.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With