News for hackers. Stuff that matters.
Re:.ai by ngcc_hk on Sunday September 11, 2022 @09:45PM (#32805031)
Is there any safe way to do that? Other than set the DNS to 8.8.8.8?
Re:.ai by mindcrime on Sunday September 11, 2022 @09:50PM (#32805088)
If you're running systemd-resolved the answer is:

To make systemd-resolved resolve hostnames that are not fully qualified domain names, add ResolveUnicastSingleLabel=yes to /etc/systemd/resolved.conf.

for that part of it. In my case I had to do that AND change my router config since I'm using an OpenWRT based router.

But with both changes made, ai. resolves just fine now for me.

Re:.ai by hjV9H2bWu4ZhXPy on Sunday September 11, 2022 @10:22PM (#32805341)
Does a lookup for "ai." work without it? That is (explicitly, even!) a FQDN...
Re:.ai by mindcrime on Sunday September 11, 2022 @10:54PM (#32805549)
For me, before changing that setting, lookups for ai. were failing. After changing it, they worked. I also had to make that OpenWRT change mentioned above since my router is running OpenWRT.

As to the question of whether or not lookup for ai. should work even without that setting... I dunno. Maybe it's just down to the way the systemd-resolved maintainers interpreted the spec?