gclayburg / synology-diskstation-scripts

Update Synology DNS records from DHCP IP address reservation
169 stars 41 forks source link

What About DNS Entries Whose DHCP Leases Have Expired? #26

Open nobozo opened 6 years ago

nobozo commented 6 years ago

I get what you're doing, and it's a great idea. But, if I'm understanding correctly, as the leases file grows, so will be number of DNS entries in the zone. What about when a DHCP lease expires. At a (very) quick glance I didn't see any way for DNS entries to be removed. Did I miss it?

gclayburg commented 6 years ago

Boy, its been a while since I looked at this, but I believe that gets handled. If it doesn't work for you, we should fix it obviously. If I remember right, the dynamic DNS entries are added with a ';dynamic' comment. Those are removed before each update and added again from what ever was in the leases file. So if the leases file is accurate, DNS should be updated as long as these scripts run.