--- rpms/e-smith-tinydns/sme9/e-smith-tinydns-2.4.0_add_hostname_following_dhcpdleases_hostname.patch 2015/01/17 18:17:09 1.5 +++ rpms/e-smith-tinydns/sme9/e-smith-tinydns-2.4.0_add_hostname_following_dhcpdleases_hostname.patch 2015/01/17 18:48:40 1.6 @@ -33,7 +33,7 @@ diff -Nur e-smith-tinydns-2.4.0/root/etc +service 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 --- 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.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 @@ -0,0 +1,107 @@ +{ + use strict; @@ -126,14 +126,14 @@ diff -Nur e-smith-tinydns-2.4.0/root/etc + my $ttl = ''; + $ttl = 0 unless ($ts <= time); + $OUT .= "=$name.$localdomain:$ip:$ttl:$endtai\n" unless ($name eq $servername); -+ 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") + if ($name eq $servername); + } + + $allocated_ip_dhcplease{$ip} = 1; + $allocated_name{$name} ++; + -+ 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") + if ($allocated_name{$name} >1); + } + }