Dhcp_host_domain_ng.py removes local-data entries

I use Unbound as resolver.

The script dhcp_host_domain_ng.py seems to be run at regular interval. But after being run, the local-data entries from the DHCP are removed.

After Unbound startup:

# unbound-control list_local_data | grep lan                                                                                                                                                           
avr-2113.lan.   3600    IN      A       192.168.1.24                                                                                                                                                                
htpc.lan.       3600    IN      A       192.168.1.42                                                                                                                                                                
24.1.168.192.in-addr.arpa.      3600    IN      PTR     avr-2113.lan.                                                                                                                                               
42.1.168.192.in-addr.arpa.      3600    IN      PTR     htpc.lan. 

Manual script execution gives the following message:

Add_lease, hostname check failed                                                                          
Refresh unbound leases   

Afterward:

# unbound-control list_local_data | grep lan                                                 
24.1.168.192.in-addr.arpa.      3600    IN      PTR     avr-2113.lan.
42.1.168.192.in-addr.arpa.      3600    IN      PTR     htpc.lan.

I have done nothing to add the dhcp entries, they are inserted by the out of the box mechanisms.

1 Like