Hi,
I have a load of servers obtaining static DHCP addresses from the DHCP server (debian). When setting up a new server I add the hostname, mac and IP address to the dhcpd.conf and it works fine. Now however I would like the hosts from the DHCP file to be automatically added to the bind9 zone file. I know you can do this with dynamic addresses but it uses the leases file to do so. With the static hosts it does not seem to add the lease to the leases file so the DNS does not get updated.
Is there a good way to do this? I am thinking about writing a script to parse the dhcpd.conf and add them to the zone file but it could be a lot of work and would rather an easier way.
Thanks