dhcpcd-discuss

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

nighthawk

Tue Jan 14 21:43:45 2020

This is the script that comes with Debian:

https://salsa.debian.org/smlx-guest/dhcpcd5/blob/debian/sid/debian/hooks/64-timesyncd.conf

At least to me it looks like it has no means to avoid pointless
restarts. So I guess I'll keep my config as is (with nohook set).

Thank you and also thank you for creating and publishing dhcpcd. Out
of all the applications I tried around DHCP it's the most straight
forward one, yet still having all the options one could ask for. Good
work! :)

On Tue, Jan 14, 2020 at 10:03 PM Roy Marples <roy@xxxxxxxxxxxx> wrote:
>
> 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?) workingRoy Marples
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
Re: "nooption dhcp6_name_servers" not (fully?) workingRoy Marples
Archive administrator: postmaster@marples.name