<div dir="auto">Systemd-resolved can't actually see your leases all on its own; the DHCP client needs to provide it that information. Networkd and NetworkManager do it directly through the D-Bus IPC.<div dir="auto"><br></div><div dir="auto">For standalone dhcpcd, you would likely need to install the `resolvconf` emulation that comes with systemd (usually packaged separately to avoid conflicts with the real resolvconf/openresolv), or find a hook script that would upload the configuration using resolvectl. For dhclient, probably the same.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 7, 2023, 19:50 Alex Cheamitru <<a href="mailto:apcheamitru@gmail.com">apcheamitru@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>I'm curious about whether or not dhclient-provided DNS servers will be added to resolv.conf when it is managed by systemd-resolved.  The man page mentions <i>"... </i><span style="font-family:sans-serif;text-align:justify"><i>and dynamically at run time, for example from DHCP leases",</i> but I'm not sure if that only applies to systemd-networkd leases.</span></div><div><span style="font-family:sans-serif;text-align:justify"><br></span></div><div><span style="font-family:sans-serif;text-align:justify">To test, I emptied my current resolv.conf (which contained dhclient-provided nameservers) and started systemd-resolved.</span></div><div><br></div><div>> /etc/resolv.conf<br></div><div>systemctl start systemd-resolved<br></div><div><br></div><div>After doing this, I see no nameservers defined in /run/systemd/resolve/resolv.conf.  </div><div><br></div><div>Is that expected behavior?  I was hoping to see my DHCP-provided nameservers in resolv.conf, but that wasn't the case.</div><div><br></div><div>Thanks,</div><div>Alex</div></div></div></div></div></div></div>
</blockquote></div>