News for hackers. Stuff that matters.
Re:The shortest, regex breaking website-domain possible: htt... by schoen on Monday June 07, 2021 @07:26PM (#27428683)
In an earlier thread I was claiming that 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

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!

Re:The shortest, regex breaking website-domain possible: htt... by IvyMike on Monday June 07, 2021 @09:37PM (#27429682)
Does http://ai./ (declaring the name as fully qualified) work on those systems?
Re:The shortest, regex breaking website-domain possible: htt... by schoen on Monday June 07, 2021 @09:59PM (#27429809)
Nope! 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!

Re:The shortest, regex breaking website-domain possible: htt... by jolmg on Tuesday June 08, 2021 @03:44PM (#27439851)
I 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.
Re:The shortest, regex breaking website-domain possible: htt... by tomklein on Monday June 07, 2021 @07:51PM (#27428869)
Interesting. Thanks for sharing!
Re:The shortest, regex breaking website-domain possible: htt... by callen43 on Tuesday June 08, 2021 @03:33AM (#27431600)
I 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

Re:The shortest, regex breaking website-domain possible: htt... by linuxfan2021 on Tuesday June 08, 2021 @08:22AM (#27434167)
This 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.
Re:The shortest, regex breaking website-domain possible: htt... by dalmo3 on Monday June 07, 2021 @08:22PM (#27429137)
How 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.
Re:The shortest, regex breaking website-domain possible: htt... by meowster on Monday June 07, 2021 @08:32PM (#27429220)
It 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.

Re:The shortest, regex breaking website-domain possible: htt... by dalmo3 on Tuesday June 08, 2021 @09:41AM (#27435074)
Ah, it worked on my phone (Chrome/Android)! No luck on desktop though, Firefox desktop redirects to pn.com LOL.
Re:The shortest, regex breaking website-domain possible: htt... by ZeroCooly on Monday June 07, 2021 @08:25PM (#27429158)
Archive.org has some archived governments website under the address. I got it to resolve under google DNS as an empty webserver with no contents.
Re:The shortest, regex breaking website-domain possible: htt... by WalterGR on Monday June 07, 2021 @07:21PM (#27428631)
Whoa. Details?
Re:The shortest, regex breaking website-domain possible: htt... by tomklein on Monday June 07, 2021 @07:22PM (#27428640)
I just found this after looking through a couple of interesting posts. I have no idea if this is permitted or why it was set up unfortunately.
Re:The shortest, regex breaking website-domain possible: htt... by ZeroCooly on Monday June 07, 2021 @08:22PM (#27429129)
Archive.org has it archived as "The Government of the PITCAIRN ISLANDS online portal"
Re:The shortest, regex breaking website-domain possible: htt... by MivLives on Monday June 07, 2021 @08:02PM (#27428948)
It doesn't seem to have a corresponding ip, at least for me. Wonder if Pihole can't handle it.
Re:The shortest, regex breaking website-domain possible: htt... by schoen on Monday June 07, 2021 @11:53PM (#27430489)
If 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.)
Re:The shortest, regex breaking website-domain possible: htt... by bawolff on Tuesday June 08, 2021 @04:07AM (#27431777)
I thought TLDs having A records wasn't allowed under ICANN rules? Is that incorrect?
Re:The shortest, regex breaking website-domain possible: htt... by toast0 on Tuesday June 08, 2021 @12:59PM (#27437760)
Maybe for new TLDs, but country code TLDs don't have to follow most of the ICANN rules.