dhcpcd-discuss

Re: "nooption dhcp6_name_servers" not (fully?) working

Roy Marples

Tue Jan 14 21:02:35 2020

On 14/01/2020 20:46, nighthawk wrote:
On Tue, Jan 14, 2020 at 1:27 PM Roy Marples <roy@xxxxxxxxxxxx> wrote:

I don't see how DNS will restart NTP.
However, that dhcpcd version does request NTP by default, but it should only
restart NTP if the configuration has changed.

Thats unexpected. I thought it would fire every time, regardless if
the information changed or not. Cool stuff!

Newer versions do not request NTP.
Try commenting out "option ntp_servers" in /etc/dhcpcd.conf

Good idea, I just tried that. My config now looks something like this:

option rapid_commit
option classless_static_routes
option interface_mtu

interface eth0
         static ip_address=192.168.0.7/24
         static routers=192.168.0.1
         static domain_name_servers=192.168.0.1 2a02:908:2:a::1 2a02:908:2:b::1
         dhcp6
         nooption ntp_servers, dhcp6_ntp_server, dhcp6_name_servers

Unfortunately my NTP service is still being restarted every 15 seconds.

I looked at the relevant packets and see, that dhcpcd is indeed not
requesting NTP or DNS information anymore - and the router is honoring
this. I am now even more puzzled, why the hook script keeps being
called.

As soon as I set "nohook timesyncd.conf" the restarts stop - so it's
definitely dhcpcd causing it. Any other ideas?

Your config is fine.
I don't supply the hook script timesyncd.conf.
If it's anything like the one here:
https://www.raspberrypi.org/forums/viewtopic.php?t=217832

Then it will restart NTP every time it runs, which is what you're reporting.

Roy

Follow-Ups:
Re: "nooption dhcp6_name_servers" not (fully?) workingnighthawk
References:
"nooption dhcp6_name_servers" not (fully?) workingnighthawk
Re: "nooption dhcp6_name_servers" not (fully?) workingRoy Marples
Re: "nooption dhcp6_name_servers" not (fully?) workingnighthawk
Archive administrator: postmaster@marples.name