TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Why do domain names sometimes end with a dot?

119 pointsby 0xedbover 2 years ago

9 comments

denton-scratchover 2 years ago
&gt; sometimes<p>All fully-qualified domain names end with a dot. The dot is effectively the label for the DNS root. Most tools (e.g. browsers) automatically assume a trailing dot.<p>[Edit] Interestingly, if I add a dot to this URL, after the domain-name, it works, and I get essentially the same content; but the styling is quite a bit different. I imagine it must be to do with the way stylesheets are referenced from HTML.<p>[Edit-2] I deprecate the use of the term &quot;DNS root&quot; to refer to the domains .com, .net, .org etc. These are top-level domains, not &quot;roots&quot;.<p>There is a single root, and it&#x27;s name is dot.
kqrover 2 years ago
A few years ago there was a big &quot;internet outage&quot; in my country. The people responsible for the national TLD had forgot to put the trailing dot in their zone file somewhere, meaning lookups of example.tld failed -- but due to how search domains were configured by their servers, example.tld.tld did resolve!<p>Sometimes me and my friends refer to it as &quot;the .tld.tld incident&quot;.
评论 #32863907 未加载
silisiliover 2 years ago
One of my first &#x27;learning a language&#x27; projects was to write a DNS query in python from scratch. Basically, writing and reading bytes directly. Read the RFCs, made sure the format was right, wrote a parser for the reply and...fail. I remember pouring over every detail for about an hour before realizing the qname was missing the trailing dot. So, apparently at least some number of resolvers really demand it.
评论 #32863367 未加载
评论 #32863701 未加载
perlgeekover 2 years ago
Relative DNS can be super useful.<p>For example, you could have a project where, by convention, the app servers are just called as <a href="http:&#x2F;&#x2F;app&#x2F;" rel="nofollow">http:&#x2F;&#x2F;app&#x2F;</a> the db servers are called as db etc. Saves lots of configuration effort. All you have to do is have a local DNS zone that keeps the traffic within its current setup.<p>That way you don&#x27;t even need separate app configuration for separate environments, and can transport an application and its configuration without changes into the next environment.<p>(Sole exception: you likely want to inject different cryptographic keys to deal with (mutual) authentication).
评论 #32865177 未加载
jollybeanover 2 years ago
Thanks to Julie for this; but I&#x27;m still a bit confused.<p>Does anyone share a suspicion that these myriad of anachronisms and bits of weirdness creates unnecessary complexity that swim through the system like a goblin in the machine? And that, if with 20&#x2F;20 hindsight we just simplified things a bit, that many of our systems would be much more resilient and easy to manage?<p>I feel that we hacked the internet together, and in the impending rush to build more and more on top of it, we just resigned ourselves to the mess.<p>None of this (well, most of it) should be inherently hard. If we &#x27;did it with foreknowledge&#x27; I wonder if all of these IT level networking issues would be pedantic, i.e. something you read a few quick docs and away you go. Everyone an expert pretty quick.<p>Merely looking at the options for my DSL device, my god man, even after all these years in tech, I&#x27;m still a bit bewildered.<p>Even at the consumer level, if I go over to someone else&#x27;s house, I can&#x27;t &#x27;change the channel&#x27;. No idea what I&#x27;m watching, or the abstractions behind how it got to the TV.
评论 #32865331 未加载
hrbfover 2 years ago
I have submitted this exact article three days ago: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32821927" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32821927</a><p>Can someone tell me how this apparent duplicate comes into being? I was under the impression that HN consolidates identical submissions.
评论 #32864309 未加载
masswerkover 2 years ago
&gt; I think relative domain names used to be more common<p>Remember the heyday of the Intranet?
评论 #32863065 未加载
JacobSeatedover 2 years ago
Interestingly, on some websites with paywalls, placing a dot at the end of the domain name actually allows you to bypass the paywall.<p>It used to work on more sites, but it has since been fixed. I guess someone caught up to the little trick haha
评论 #32864329 未加载
评论 #32864143 未加载
评论 #32863913 未加载
TwoNineFiveover 2 years ago
Why is the word &quot;suffix&quot; absent from the article and this discussion? It&#x27;s only the entire explanation in one word.