networkd doesn't take into account search domain received by DHCP

Bug #1846509 reported by Stéphane GONAUER
8
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,file="my.qcow2",id=hd0 \
 -device virtio-blk,drive=hd0 \
 -netdev user,id=user.0,hostfwd=tcp::32768-:22,dnssearch=dns.companyname.com \
 -device virtio-net,netdev=user.0,mac=de:ad:de:01:02:03 \
 -vga none

The system-network doesn't take into account search domain and then search fail.

The same setup does work when using NetworkManager.

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

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'.

Changed in systemd (Ubuntu):
status: New → Confirmed
Balint Reczey (rbalint)
Changed in systemd (Ubuntu):
assignee: nobody → Balint Reczey (rbalint)
Balint Reczey (rbalint)
Changed in systemd (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package systemd - 242-7ubuntu3

---------------
systemd (242-7ubuntu3) eoan; urgency=medium

  * Fix using domain set by DHCP as search domain (LP: #1846509)
    File: debian/patches/network-do-not-use-ordered_set_printf-for-DOMAINS-or-ROUT.patch
    https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=210e1f979d27c7eeaff87c0f16240ec415d0a043
  * Add test for UseDomains=true default setting
    File: debian/patches/debian/Ubuntu-test-UseDomains-true-default-setting.patch
    https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=a2c01a848969d3c5cbe67b3c26ff641e367edba7
  * Refresh patches

 -- Balint Reczey <email address hidden> Fri, 11 Oct 2019 16:19:01 +0200

Changed in systemd (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.