33 |
+service |
+service |
34 |
diff -Nur e-smith-tinydns-2.4.0/root/etc/e-smith/templates/var/service/tinydns/root/data/65dhcpARecords e-smith-tinydns-2.4.0.bz2388/root/etc/e-smith/templates/var/service/tinydns/root/data/65dhcpARecords |
diff -Nur e-smith-tinydns-2.4.0/root/etc/e-smith/templates/var/service/tinydns/root/data/65dhcpARecords e-smith-tinydns-2.4.0.bz2388/root/etc/e-smith/templates/var/service/tinydns/root/data/65dhcpARecords |
35 |
--- e-smith-tinydns-2.4.0/root/etc/e-smith/templates/var/service/tinydns/root/data/65dhcpARecords 1970-01-01 01:00:00.000000000 +0100 |
--- e-smith-tinydns-2.4.0/root/etc/e-smith/templates/var/service/tinydns/root/data/65dhcpARecords 1970-01-01 01:00:00.000000000 +0100 |
36 |
+++ e-smith-tinydns-2.4.0.bz2388/root/etc/e-smith/templates/var/service/tinydns/root/data/65dhcpARecords 2015-01-17 19:02:21.779342484 +0100 |
+++ e-smith-tinydns-2.4.0.bz2388/root/etc/e-smith/templates/var/service/tinydns/root/data/65dhcpARecords 2015-01-17 19:45:33.892642388 +0100 |
37 |
@@ -0,0 +1,107 @@ |
@@ -0,0 +1,107 @@ |
38 |
+{ |
+{ |
39 |
+ use strict; |
+ use strict; |
126 |
+ my $ttl = ''; |
+ my $ttl = ''; |
127 |
+ $ttl = 0 unless ($ts <= time); |
+ $ttl = 0 unless ($ts <= time); |
128 |
+ $OUT .= "=$name.$localdomain:$ip:$ttl:$endtai\n" unless ($name eq $servername); |
+ $OUT .= "=$name.$localdomain:$ip:$ttl:$endtai\n" unless ($name eq $servername); |
129 |
+ log2messages("The hostname of this server ($servername) is used with different IP in /var/lib/dhcpd/dhcpd.leases") |
+ log2messages("The hostname of this server ($servername) is already in use with a different IP address in /var/lib/dhcpd/dhcpd.leases") |
130 |
+ if ($name eq $servername); |
+ if ($name eq $servername); |
131 |
+ } |
+ } |
132 |
+ |
+ |
133 |
+ $allocated_ip_dhcplease{$ip} = 1; |
+ $allocated_ip_dhcplease{$ip} = 1; |
134 |
+ $allocated_name{$name} ++; |
+ $allocated_name{$name} ++; |
135 |
+ |
+ |
136 |
+ log2messages("The hostname \"$name\" is duplicated with different IP in /var/lib/dhcpd/dhcpd.leases") |
+ log2messages("The hostname \"$name\" has already been assigned an IP address in /var/lib/dhcpd/dhcpd.leases") |
137 |
+ if ($allocated_name{$name} >1); |
+ if ($allocated_name{$name} >1); |
138 |
+ } |
+ } |
139 |
+ } |
+ } |