Extremely offtopic but I accidentally pasted the link linuxtoaster.com. (with the dot) and I thought it would lead to my search engine (DDG) or something but then the website opened.
Then I tried opening up google.com. and this works too. I didn't know that websites resolve when you add another additional dot after TLD. This was a really fun coincidence type thing so I wanted to share it with you.
The final dot indicates that the name is fully qualified. Without a final dot, DNS looks up the name and if that fails, it tries again appending each of the suffixes specified in "search" in /etc/resolv.conf.
IIRC domains names read from the right and the first dot is omitted. It's actually
com. example.com. subdomain.example.com.
That's what makes domains true FQDNs :)
I read an interesting blog article on this a while back: https://lacot.org/blog/2024/10/29/the-trailing-dot-in-domain...