when is a DHCP server supposed to remove A and PTR records?

Simon Hobson dhcp1 at thehobsons.co.uk
Wed Jul 8 17:36:40 UTC 2015


Marc Haber <mh+dhcp-users at zugschlus.de> wrote:

> I am using DHCP server 4.3.2, running on Debian stable. The server is
> configured to create DNS records for clients:
> 
> default-lease-time 14400; # 12 hours
> max-lease-time 14400;  # 12 hours
> not authoritative;
> ddns-rev-domainname "in-addr.arpa.";
> 
> zone ka51.zugschlus.de. {
>  primary lasso.ka51.zugschlus.de;
>  key lasso-chasse-dhcp;
> }
> 
> subnet 192.168.182.0 netmask 255.255.255.0 {
>  pool {
>    range 192.168.182.150 192.168.182.249;
>    failover peer "chasse-cadencia"; # the other side does not exist yet
>  }
>  option routers int182.barrida.ka51.zugschlus.de;
>  ddns-domainname "ka51.zugschlus.de";
>  authoritative;
> }
> 
> zone 182.168.192.in-addr.arpa. {
>  primary lasso.ka51.zugschlus.de;
>  key lasso-chasse-dhcp;
> }
> 
> The server creates A and PTR records just fine:
> 
> [1/499]mh at lasso:~$ dig +noall +answer @::1 grml.ka51.zugschlus.de. -t ANY; dig +noall +answer @::1 150.182.168.192.in-addr.arpa. -t ANY
> grml.ka51.zugschlus.de. 150     IN      A       192.168.182.150
> grml.ka51.zugschlus.de. 150     IN      DHCID   AAABXpcYBFwbrFx8RVNPtzwhrrTkbLs/asQOPK8nr65lFtc=
> 150.182.168.192.in-addr.arpa. 150 IN    PTR     grml.ka51.zugschlus.de.
> 
> Under which circumstances is the server supposed to remove the DNS
> records? From the docks, I reckon that it should remove them when the
> lease expires. According to the logs of the DNS server, it doesn't,
> though.

It should remove them at the end of the lease.
However, the address you've shown there wouldn't be the first one allocated by teh server - so can I check that you don't have a declaration statement with a fixed address statement and "update static leases" set. That would cause the behavious you are seeing.



More information about the dhcp-users mailing list