9 ms·
No, that dot in the domain name of the URL is not a mistake (2004)
- hydgu 7y agoI suppose when you want to be known for something, this is a reason as good as any other. Oh look it's the weird guy who still puts a dot at the end of domain names.
- EugeneOZ 7y agoI suppose it's better to read the article before commenting it.
- hydgu 7y agoI've read it the 20398402934 times it's been submitted. It's still bullshit. The problems he talks about aren't problems. People are not "uneducated" as he says. Nobody cares.
- tomhoward 7y agoLooks like it's never had any attention/discussion here before: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&query=dot%20domain%20name%20url%20mistake&sort=byDate&type=story https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
- cpach 7y agoWelcome to HN. Please critique the arguments instead of the author.
- deleted 7y ago[deleted]
- undebuggable 7y agoJoke's on you. Once spent a whole morning failing to obtain a signed SSL certificate from one of the certificate authorities. The field description in a web form was clearly stating to enter the FQDN, yet the form was not passing through with a very general error description (it appeared later that the URL with a dot at the end was not validating, someone copy-pasted a regex of an URL?). On help request, the IT operations guys looked with disdain at the webdev unable to produce "a stupid certificate". The disadvantages of reading the instructions and field hints ¯\_(ツ)_/¯
- kuschku 7y agoAnd this is why projects like caddyserver, traefik, and similar tools are simply broken by default, e.g.: https://github.com/caddyserver/caddy/issues/1632 https://github.com/caddyserver/caddy/issues/1632 nginx, btw, does automatically support FQDNs for all your virtual hosts, as does apache.
- deleted 7y ago[deleted]
- thibautg 7y agoI get the following error when I add a dot at the end of the address for a virtual host in Apache: Misdirected Request The client needs a new connection for this request as the requested host name does not match the Server Name Indication (SNI) in use for this connection. Apache/2.4.25 (Debian) Server at example.com Port 443
- kuschku 7y agoYou don't add dots in the config file. If you configure the virtual host to be e.g. "example.com", Apache will listen at "example.com" and "example.com."
- MaxBarraclough 7y agoHe makes a 'technically correct' case for fully qualified domain names, but I'm not sure this a real problem. Under what circumstances are things really improved by using them? If your DNS server is untrustworthy, this doesn't help. If your DNS server is trustworthy, do fully qualified domain names help you? There's almost nothing on the web about 'Common Internet Scheme'. [0] Also, it's a little ironic that we're reading a page on spoofing, from a site which doesn't support HTTPS. [0] https://www.google.com/search?q="Common+Internet+Scheme" https://www.google.com/search?q="Common+Internet+Scheme"
- thefounder 7y ago>> Also, it's a little ironic that we're reading a page on spoofing, from a site which doesn't support HTTPS. Let's encrypt didn't exist in 2004.
- micheljansen 7y agoBut HTTPS did. You just had to pay to get a certificate.
- doublerabbit 7y agoYou had to pay a fair bit of money back then for SSL. And why does a static html site need https? I’m all for encryption but we just HTTPS things pointlessly. Why can’t I use my own self-signed certificate, it’s the same thing.
- joeraut 7y agoHTTPS everywhere has other advantages, such as preventing ISPs from injecting scripts or content into HTTP pages. [0] [0] https://news.ycombinator.com/item?id=21389657 https://news.ycombinator.com/item?id=21389657
- metafunctor 7y agoBecause without HTTPS, the content can be modified in transit. Some free Wi-Fi access points and evil ISPs, for example, will inject ads and trackers.
- hadrien01 7y agoWell congratulations, you're blocked by my adblocker because of that dot (uBlock Origin with EasyList Liste FR)
- stevenjohns 7y agoWhy would that list be blocking fully qualified domain names? Seems more like a bug than a feature, but if there is a good reason for it I'd be interested to learn
- kadoban 7y agoI would imagine the reason is that some ad provider used a fqdn to get around some badly written rule, and then someone added an even worse rule to block all fqdn to negate that trick.
- Tepix 7y agoYou should get that fixed because it‘s wrong
- rascul 7y agoWorks fine here with Firefox, uBlock Origin, and EasyList. Maybe the Fr version has a buggy rule?
- guillem_lefait 7y agoSame here. Wrong filter: /^(https?|wss?):\/\/([0-9a-z\._-]+)\.(accountant|bid|cf|click|club|com|cricket|date|download|faith|fun|ga|gdn|gq|info|link|loan|men|ml|net|network|ovh|party|pro|pw|racing|review|rocks|ru|science|site|space|stream|tk|top|trade|webcam|win|xyz|zone)\.\/(.*)/$document
- petee 7y agoOne issue I noticed is how browsers and sites handle the dot inconsistently; Edge browser used to "fix" the url, for example. Google used to do a weird combination of rewriting and/or using the dot, depending on what part of the site you were on. What ended up happening roughly is that you could log into the FQDN, google would do logins for both dot/nodot, if you logged out of one, the other would still work (probably also a combination of Chrome keeping 2 sets of cookies) I probably can't, but if I find my original notes I'll add a reply...I recall both Edge and Google fixing the problem, but there are other sites & browsers i'm sure that are still affected
- muterad_murilax 7y ago"You've come to this page because you've asked a question similar to the following: I omitted the trailing dot in the domain name in the http://example.com./ http://example.com./ URL because it was a typographical error." That is not a question, though.
- ben_w 7y agoI find it wonderful that a link to a page talking about stripping a trailing period from a domain has been linked to with descriptive text from which the trailing period has been stripped from the domain
- chrismorgan 7y agoIt was present when it was posted; I suppose moderators removed it for consistency with HN style.
- TruffleLabs 7y agoAn interesting effect is http://jdebp.info/ http://jdebp.info/ displays “not secure” in the browser and http://jdebp.info./ http://jdebp.info./ does not.
- OrgNet 7y agoFirefox tells you that both connections are not secure... are you using Chrome?
- amdavidson 7y agoBoth show as Not Secure on my Chrome (78.0.3904.108)
- jmiserez 7y agoSadly many libraries get RFC and standards implementations wrong. I've run into similar edge cases before, and it's always frustrating to see it either not implemented at all (best case), or overlooked due to simplified implementation (e.g. regex instead of parsing), or that there's a bug report that's closed as wontfix because it would be too complicated to fix.
- whatsmyusername 7y agoI feel dumber for having read this article. Tbf it’s from the early 2000s but it reads like a nasally academic trying to lecture people who work for a living about theory with little to no practical benefit.
- 314 7y agoThe level of passive-aggression in the side-swipe at djb is quite impressive though.
- gumby 7y agoI have been surprised that some domain registrars reject FQDNs when they ask for your DNS servers. Sad.
- ttctciyf 7y agoGlad to see that http://pn/ http://pn/ and http://pn./ http://pn./ are both apparently working. I'm pretty sure that at one point I had to supply the trailing dot to make the browser (or resolver) believe it was a real hostname.
- donatj 7y agoWhat is the deal with that?
- ch_sm 7y agoYeah, how does that work?
- 3pt14159 7y agoI'd guess it's the TLD of the Pitcairn Islands set to resolve to this random page. For example http://ca. resolves to the Canadian domain registrar.
- colejohnson66 7y agoNot necessarily a random page, but an “it works” page so you know your server works.
- lioeters 7y agoHow perplexing that it works at all! I want to know how that works.
- colejohnson66 7y agoIt’s just a TLD that actually resolves; Most don’t. For example, http://com./ http://com./ doesn’t resolve even though it has “subdomains”. This does though beg the question: can a second level domain (root website) have (what we call) subdomains and not resolve itself? For example, example.example.com would resolve, but example.com wouldn’t?
- Chris_Chambers 7y agoAh, autism.