Actions
Bug #436
closed[PATCH] rewrite of tinydns_add_active_leases
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
DNS Server
Target version:
-
Start date:
03/19/2010
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:
Description
This is a rewrite of the function tinydns_add_active_leases. It now handles multiple entries for one ip in the dhcpd.leases file properly and also creates host records with a timestamp matching the end-of-lease in order to allow tinydns-data to automatically adjust the ttl of the record.
We no host entry in this situation (lease given up by client):
lease 192.168.1.199 {
starts 5 2010/03/19 16:25:26;
ends 5 2010/03/19 18:25:26;
binding state active;
next binding state free;
hardware ethernet a2:81:6e:47:79:90;
client-hostname "testhost";
}
lease 192.168.1.199 {
starts 5 2010/03/19 16:25:26;
ends 5 2010/03/19 16:28:06;
tstp 5 2010/03/19 16:28:06;
binding state free;
hardware ethernet a2:81:6e:47:79:90;
}
We get a proper host-entry for this situation:
lease 192.168.1.199 {
starts 5 2010/03/19 16:28:25;
ends 5 2010/03/19 18:28:25;
binding state active;
next binding state free;
hardware ethernet a2:81:6e:47:79:90;
client-hostname "testhost";
}
=testhost.local:192.168.1.199:0:400000004ba3c253
Files
Actions