Name resolution/DNS not working on Pi Zero W after install

Ask questions about Arch Linux ARM. Please search before making a new topic.

Name resolution/DNS not working on Pi Zero W after install

Postby cyberpunkrocker » Tue Oct 15, 2019 5:51 pm

A few days ago I bought my first Raspberry Pi, a Zero W. I installed Arch ARM on it, and configured wpa_supplicant during the installation (as per these instructions https://ladvien.com/installing-arch-linux-raspberry-pi-zero-w/). That went quite well, rp0w booted without problems, I could SSH in, I could ping internet by ip addresses, BUT.... I never could get the name resolution working with default settings & programs. To have a working name resolution, I had to 1) stop and disable both systemd-networkd and systemd-resolved, 2) start and enable dhcpcd on wlan0 and 3) edit /etc/resolv.conf by hand. (to stop dhcpcd overwriting it I added 'nohook resolv.conf' to /etc/dhcpcd.conf). I should also mention that none of the other computers in my network has any problems with DNS or routing, including the two other Arch Linux machines (those two are using NetworkManager, though)

Any ideas why systemd-resolved couldn't do its job? According to a quick search through these forums it seems like quite a few new users have the same problem...
cyberpunkrocker
 
Posts: 5
Joined: Tue Oct 15, 2019 4:31 pm

Re: Name resolution/DNS not working on Pi Zero W after insta

Postby ramsey » Wed Oct 16, 2019 9:42 am

I have a similar problem. sudo systemctl stop systemd-resolved.service works to get networking going. If I disable it, then I have to start and stop systemd-resolved to get a working network connection. In my case, using a chromebook plus.
ramsey
 
Posts: 28
Joined: Mon Aug 14, 2017 3:46 pm

Re: Name resolution/DNS not working on Pi Zero W after insta

Postby ramsey » Thu Oct 17, 2019 10:24 am

I believe I found the cause of my problem here. Checking systemctl status systemd-resolved, I see several messages about DNSSEC validation failed. It seems this change, https://bugs.archlinux.org/task/59391 resulted in DNSSEC being flipped on. So I added to my /etc/systemd/resolved.conf, DNSSEC=no and now my DNS will work after a reboot without stopping systemd-resolved.
ramsey
 
Posts: 28
Joined: Mon Aug 14, 2017 3:46 pm

Re: Name resolution/DNS not working on Pi Zero W after insta

Postby muteki » Thu Oct 17, 2019 11:14 am

I have tried DNSSEC=no and DNS resolution will work for 5 minutes, then I need to restart systemd-resolved to get another 5 minutes of DNS resolution.

Any other clues of where I can look to fix this very annoying issue?
muteki
 
Posts: 2
Joined: Thu Oct 17, 2019 11:11 am

Re: Name resolution/DNS not working on Pi Zero W after insta

Postby hmeyer » Wed Oct 30, 2019 10:35 am

that's an old story, have a look here: https://bbs.archlinux.de/viewtopic.php?id=32020

in my case, I put DNSSEC=no in /etc/systemd/resolved.conf
(resolve.conf or resolv.conf don't exit on my raspi 3)

worked for me on raspi 2 (last year) and raspi 3 (some weeks ago)
Last edited by hmeyer on Wed Oct 30, 2019 10:55 am, edited 2 times in total.
hmeyer
 
Posts: 25
Joined: Fri Jul 31, 2015 8:17 am

Re: Name resolution/DNS not working on Pi Zero W after insta

Postby muteki » Wed Oct 30, 2019 10:49 am

$this->bbcode_second_pass_quote('hmeyer', 't')hat's an old story, have a look here: https://bbs.archlinux.de/viewtopic.php?id=32020


The link you provide suggest to set DNSSEC=no as a solution and as I wrote that didn't do it for me.

Here's what I see in the log when restarting systemd-resolved.
$this->bbcode_second_pass_code('', 'Oct 30 12:20:38 RPi systemd[1]: Started Network Name Resolution.
Oct 30 12:20:44 RPi systemd-resolved[265]: Using degraded feature set (UDP+EDNS0) for DNS server 192.168.1.200.
Oct 30 12:21:00 RPi systemd-resolved[265]: Using degraded feature set (UDP) for DNS server 192.168.1.200.
Oct 30 12:36:45 RPi systemd-resolved[265]: Grace period over, resuming full feature set (TLS+EDNS0) for DNS server 192.168.1.200.
')
muteki
 
Posts: 2
Joined: Thu Oct 17, 2019 11:11 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 51 guests