4 ms·
If it’s not working for you it’s probably due to the resolver you’re using or how your host’s stub resolver is configured. Some stub resolvers have rules about
by js2 4y ago
If it’s not working for you it’s probably due to the resolver you’re using or how your host’s stub resolver is configured. Some stub resolvers have rules about the number of dots in the name.
I’m using dnsmasq on my router pointed at Google DNS and it’s not currently resolving for me on my iPhone. I’ll have to check where the failure is occurring.
Edit: if I turn off WiFi on my iPhone, I can load the site just fine over Verizon cellular. So it’s my dnsmasq config most likely.
- eru 4y agoA trailing dot is entirely within the spec, isn't it? For some fun: http://gs.com./ http://gs.com./ gives an error. https://news.ycombinator.com./ https://news.ycombinator.com./ works, but has me logged out (probably the cookie doesn't match?).
- js2 4y agoYes. The trailing dot is typically to tell the stub resolver not to try qualifying with the local domain. Rules vary by stub resolver though. On iOS I’m getting “A server with the specified hostname could not be found. NSURLErrorDomain” regardless of browser. I’ll have to debug tomorrow when I’m not too lazy to get up off the couch from my phone. Both of your URLs work for me. A 404 on the first. I stay logged in to HN on the second. My guess is my trouble is with my local dnsmasq config.
- hug 4y agoThe SNI spec dictates that trailing dots shall be stripped from the hostname. The HTTP host header which is sometimes (ab)used to perform a kind of not-quite-right-SNI doesn't have the luxury of being quite so well specified.
- brassattax 4y agohttp://microsoft.com./ http://microsoft.com./ has an interesting 404 page
- jordemort 4y agoI used to work for a guy who registered borgosoft.com and CNAMEed it to microsoft.com. In the days before HTTP 1.1, a Host: header was not required on a request, and it would happily serve up microsoft.com's content under borgosoft.com. Eventually they started requiring a host header, and the trick stopped working. The guy I worked for claimed credit for making them do this; I have my doubts.
- thayne 4y agoGs.com. is probably because the server doesn't expect a . At the end of the domain in the host header
- ignoramous 4y agoAppending "." to domain names helps bypass naive DNS based censorship, too.
- ytch 4y agohttps://news.ycombinator.com/item?id=23479435 https://news.ycombinator.com/item?id=23479435 In 2020, someone find if you add "." in host suffix of Youtube url: http://www.youtube.com./ http://www.youtube.com./ it will works without AD (IIRC, because AD resource file is viewed as different domain and blocked)
- eru 4y agoAlas, now it just redirects to the dotless version.