DEV Community


Discussion on: Error due to (.) in Domain Name End[]

ricobrase profile image
Rico Brase

That's just how DNS works. The trailing dot means that the hostname is an absolute path and not relative to your current local domain.

If your local network is called "example.local", you could setup a local DNS server in your network, to resolve "" to a device in your local network.

Entering "" in your browser will then be the same as entering "" and you won't be able to access Google anymore.
That's basicly the same as having a computer with the hostname "my-computer" in your network - you can access a running webserver by typing in "my-computer" into your webbrowser, effectively navigating to "my-computer.example.local".

Adding the trailing dot to the URL as in "" tells the DNS server, that you didn't left out the "example.local" due to laziness, but because you want, in fact, navigate to "" and not to "".

You can think of it as relative and absolute paths on your computer.
On a Unix-based operating system, a file path starting with a slash will be an absolute path, while paths without a leading slash will be treated as relative to your current working directory.

Summary: --> relative to your current domain --> absolute to the top-level domain

asharry97 profile image
Ashish R Bhandari Author

This is a Great Knowledge Rico Brase that you have shared.
I really liked the Explanation of "" and ""
I am Going to try this.
Thanks alot.
Can you help me with my other Posts as well.
Providing your knowledge on those will help me Explorer more.