gravity icon indicating copy to clipboard operation
gravity copied to clipboard

Remove/update all related DNS records when DHCP lease is updated/removed

Open tigattack opened this issue 2 years ago • 0 comments

This could be considered an extension of the functionality we spoke about a while ago, implemented in e809e846d4f6695948180fa946c1d2431af8700a.

When a DHCP lease is updated or removed, it would be good if the DNS record is also updated or removed accordingly. This seems to work as I'd hope in some cases, but not others.

Does work:

  • Client updates lease, A record is updated
  • Lease expires, A & PTR records also expire (as added in e809e846d4f6695948180fa946c1d2431af8700a, tbh I haven't monitored this closely, but I'm pretty sure it works as expected)

Doesn't work:

  • Client updates lease, PTR record is not updated
  • User deletes lease, A and PTR records remain

To me, the lack of PTR updates is the priority. It's easy enough to clean up records after manual removal of a lease.

Since the removal of PTRs seems to rely exclusively on the expiry time, reverse lookup zones end up looking like this: image

tigattack avatar Jan 14 '24 00:01 tigattack