[*SP4M*] DHCPd only updating the forward zone

Simon Hobson dhcp1 at thehobsons.co.uk
Mon Dec 21 11:27:54 UTC 2020


Dan Egli <dan at newideatest.site> wrote:

>> What do the logs for both DNS and DHCP show when this happens ?
>> 
>> 
> dhcpd.log:
> Dec 20 20:55:57 pluto dhcpd[1129]: DHCPDISCOVER from 08:00:27:03:d3:23 via enp0s8
> Dec 20 20:55:58 pluto dhcpd[1129]: DHCPOFFER on 192.168.10.128 to 08:00:27:03:d3:23 (venus) via enp0s8
> Dec 20 20:55:58 pluto dhcpd[1129]: DHCPREQUEST for 192.168.10.128 (192.168.10.1) from 08:00:27:03:d3:23 (venus) via enp0s8
> Dec 20 20:55:58 pluto dhcpd[1129]: DHCPACK on 192.168.10.128 to 08:00:27:03:d3:23 (venus) via enp0s8
> 
> No entries at all in named.log now that it's started not making dynamic updates at all. The named.log shows startup messages, and nothing else.

That would be normal - once the DNS is updated, dhcpd won't send further updates until something changes - such as a lease timing out or being released. You could either release the lease from the client, let it expire, or shut down dhcpd and manually remove the DNS entries from the lease.

What we're looking for is to see if dhcpd tries to update and fails, or doesn't try at all.

> As to the name server, it would be pluto actually, not jupiter.

Oops, my mistake there.


> I don't know what's up, but there's no update of DNS at all right now. I'm stumped. As far as I can tell, all is fine in the config.

Yes, it all looks fine and should "just work automagically"


What should happen is dhcpd looks up the SOA record for the zone (sorry, I should have asked for that rather than NS records) to find the primary authoritative name server for the relevant zone - it will then send updates to that server. I can see from your previous message that pluto is given in both zones - so both updates should work. As far as I can see, everything is setup correctly for this to work.

There is an argument for using signed zone updates - but IMO that's not really necessary for a small home setup like this. There you define a key, add zone directives to the dhcp config, and reference the key (rather than an IP based ACL) in the allow updates directives in your dns setup.

Simon



More information about the dhcp-users mailing list