4 ms·
The shortest, regex breaking website-domain possible: http://pn/
Unfortunately, I can not add the domain directly to HN. Here it is:
http://pn/
It indeed runs a webserver.
- WalterGR 5y agoWhoa. Details?
- schoen 5y agoIn an earlier thread I was claiming that http://ai/ http://ai/ was no longer operating, but I belatedly learned that this is because systemd's DNS resolver has hard-coded a refusal to look up addresses with a single label from servers outside the LAN. I misinterpreted the lack of results as implying that it had been removed upstream. https://news.ycombinator.com/item?id=27157712 https://news.ycombinator.com/item?id=27157712 So, (1) there is another site that is as short as the one you mentioned, and (2) Linux systems that default to using systemd-resolve won't be able to see either of them!
- tomklein 5y agoInteresting. Thanks for sharing!
- IvyMike 5y agoDoes http://ai./ http://ai./ (declaring the name as fully qualified) work on those systems?
- schoen 5y agoNope! I specifically tried that in the course of researching my post for the other thread, and again now. This doesn't work either on the browser or command line, including using DNS-specific software like dig or host. I think I found a spot in the systemd source code where it specifically says it will refuse to attempt single-label lookups to remote nameservers, and all my Linux systems are relying on systemd-resolve for all of their DNS lookups. If I specifically change my nameserver away from 127.0.0.53 for a query and point it anywhere else, these single-label names immediately resolve correctly again. I was also speculating in the other thread that it might be hard to get systemd to reverse this decision just for the one host "ai". Even though we now have twice as many examples of hosts that are broken by this, I still think it might be hard to get it fixed!
- jolmg 5y agoI also couldn't see ai, but my nameserver was set to my wifi router. I guess either my wifi router is using systemd-resolve or this practice isn't just done by systemd.
- MivLives 5y agoIt doesn't seem to have a corresponding ip, at least for me. Wonder if Pihole can't handle it.
- schoen 5y agoIf you're using systemd-resolve either on your own system or on the Pi, single-label DNS lookups won't be propagated. (You can see that you're using this if your upstream resolver is set to 127.0.0.53 anywhere.)
- dalmo3 5y agoHow do you even access it? It won't resolve for me (1.0.0.1). redbot.org can't see it either. who.is falls back to pn.com.
- ZeroCooly 5y agoArchive.org has some archived governments website under the address. I got it to resolve under google DNS as an empty webserver with no contents.
- meowster 5y agoIt works in Firefox on my phone. The site: > It works! > This is the default web page for this server. > The web server software is running but no content has been added, yet.
- dalmo3 5y agoAh, it worked on my phone (Chrome/Android)! No luck on desktop though, Firefox desktop redirects to pn.com LOL.
- callen43 5y agoI almost get the impression that the only single restriction to urls is having http(s):// at their beginning. Also reminds me on this interesting collection of unusual urls (and regular expressions) https://mathiasbynens.be/demo/url-regex https://mathiasbynens.be/demo/url-regex
- bawolff 5y agoI thought TLDs having A records wasn't allowed under ICANN rules? Is that incorrect?
- toast0 5y agoMaybe for new TLDs, but country code TLDs don't have to follow most of the ICANN rules.
- linuxfan2021 5y agoThis is very cool and I have 0% idea how it works. My work's network actually blocks this as 'Unknown', but I'll check it when I get home.