You are not logged in.

#1 2021-12-09 21:35:47

parbleu
Member
Registered: 2021-11-28
Posts: 19

[Solved] No DNS resolution on fresh install using systemd-networkd

Hi there,

unfortunately, I'm not able to get DNS resolution working on my freshly installed Arch using systemd-networkd in conjunction with iwd. During installation everything worked well.

I did not touch configuration of either, besides creating the files /etc/systemd/network/20-wired.network and /etc/systemd/network/25-wireless.network (with correct device names).
Interestingly, /etc/resolv.conf is a file, but empty. /run/systemd/resolve/resolv.conf does not exist.

I suspect systemd-networkd not correctly recognizing the DNS server advertised by DHCP. It works on my Debian device with Network-Manager (wireless and wired) and on iOS devices too.

Last edited by parbleu (2021-12-11 19:29:26)

Offline

#2 2021-12-09 22:05:53

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 73,088

Re: [Solved] No DNS resolution on fresh install using systemd-networkd

https://wiki.archlinux.org/title/System … _and_setup - 3rd point.
Then https://wiki.archlinux.org/title/System … figuration

If /etc/resolv.conf is a regular file, resolved won't write it but depend on something else to write it and that something else is not networkd

Offline

#3 2021-12-11 19:30:52

parbleu
Member
Registered: 2021-11-28
Posts: 19

Re: [Solved] No DNS resolution on fresh install using systemd-networkd

Ah! I quickly read over it, but didn't recognized the note on systemd-resolvd for DNS over DHCP. Thanks!

Offline

Board footer

Powered by FluxBB