[Bug 1770557] Re: systemd-resolved should be restarted only on actual DHCP/DNS updates

Dan Streetman 1770557 at bugs.launchpad.net
Wed Jun 30 21:51:01 UTC 2021


please reopen if this is still an issue

** Changed in: systemd (Ubuntu)
       Status: Triaged => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1770557

Title:
  systemd-resolved should be restarted only on actual DHCP/DNS updates

Status in systemd package in Ubuntu:
  Invalid

Bug description:
  My ISP gives me a DHCP IP with lease time about 2 minutes
  in the script /etc/dhcp/dhclient-enter-hooks.d/resolved , a function make_resolv_conf is defined which creates config fragments in resolved.conf.d/ , then unconditionally restarts systemd-resolved service
  so, about every 2 minutes, this service is restarted on my system, despite the fact that DNS configuration is not changed.
  I would propose an update to the script, which first creates config fragments in temporary files, and then it restarts the service only when config is changed (or created/removed).
  now going to attach my patch below

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1770557/+subscriptions



More information about the foundations-bugs mailing list