networkd doesn't take into account search domain received by DHCP
Bug #1846509 reported by
Stéphane GONAUER
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Balint Reczey |
Bug Description
Hi,
When starting a virtual machine with the following command line :
qemu-system-x86_64 -k fr -m 1024 -smp 1 -display none \
-rtc base=utc -daemonize \
-drive if=none,
-device virtio-
-netdev user,id=
-device virtio-
-vga none
The system-network doesn't take into account search domain and then search fail.
The same setup does work when using NetworkManager.
Changed in systemd (Ubuntu): | |
assignee: | nobody → Balint Reczey (rbalint) |
Changed in systemd (Ubuntu): | |
status: | Confirmed → In Progress |
To post a comment you must log in.
I could reproduce this trivially; a simple netplan config:
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp: yes
Will show that my domain "cyphermox.net" here is not passed from DHCP in networkd to resolved (and does not show in /run/systemd/ resolve/ stub-resolv. conf or resolv.conf), whereas if I switch the renderer to "NetworkManager", I can then see both ~. and "cyphermox.net" in search domains when running 'systemd-resolve --status'.