News for hackers. Stuff that matters.
Re:http://pn./ by eru on Sunday September 11, 2022 @11:09PM (#32805647)
A trailing dot is entirely within the spec, isn't it?

For some fun: http://gs.com./ gives an error. https://news.ycombinator.com./ works, but has me logged out (probably the cookie doesn't match?).

Re:http://pn./ by ytch on Monday September 12, 2022 @01:31AM (#32806428)
https://news.ycombinator.com/item?id=23479435

In 2020, someone find if you add "." in host suffix of Youtube url: http://www.youtube.com./ it will works without AD (IIRC, because AD resource file is viewed as different domain and blocked)

Re:http://pn./ by eru on Monday September 12, 2022 @09:22PM (#32819643)
Alas, now it just redirects to the dotless version.
Re:http://pn./ by ignoramous on Monday September 12, 2022 @12:35AM (#32806138)
Appending "." to domain names helps bypass naive DNS based censorship, too.
Re:http://pn./ by brassattax on Sunday September 11, 2022 @11:56PM (#32805918)
http://microsoft.com./ has an interesting 404 page
Re:http://pn./ by jordemort on Monday September 12, 2022 @12:22AM (#32806063)
I 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.
Re:http://pn./ by js2 on Sunday September 11, 2022 @11:20PM (#32805718)
Yes. 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.

Re:http://pn./ by hug on Sunday September 11, 2022 @11:40PM (#32805829)
The 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.

Re:http://pn./ by thayne on Monday September 12, 2022 @12:18AM (#32806041)
Gs.com. is probably because the server doesn't expect a . At the end of the domain in the host header