I have a system with Ubuntu 18.04 on it, and there have been some (apparently) radical changes in the way DHCP client and DNS are handled.
After stumbling through documentation on systemd-resolved, I've figured out that for whatever reason:
- Dhclient is not running, and is apparently not the daemon responsible for obtaining a DHCP IP anymore?
- That whatever IS handling getting dhcp (systemd.networkd?) is ignoring the search domain information being passed by my DHCP server
- Running "dhclient" resolves this
See screenshot below, sorry for tiny text:
Note that "dhclient" requested (and got) a different IP, which was overwritten by systemd-networkd at some point since the system reverted back to 25.207 silently.
Finally, restarting network services with
systemctl restart networkd-systemd and restarting resolved with
systemctl restart systemd-resolved leaves the search line in place in the symlink at
/etc/resolv.conf after "dhclient" is typed.
Can someone point me to documentation on what's handling DHCP for ubuntu 18.04 now, and why it might not be pulling search domain information and setting it properly in systemd-resolved?