/[smeserver]/rpms/e-smith-tinydns/sme9/e-smith-tinydns-2.4.0_add_hostname_following_dhcpdleases_hostname.patch
ViewVC logotype

Diff of /rpms/e-smith-tinydns/sme9/e-smith-tinydns-2.4.0_add_hostname_following_dhcpdleases_hostname.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.5 by stephdl, Sat Jan 17 18:17:09 2015 UTC Revision 1.6 by stephdl, Sat Jan 17 18:48:40 2015 UTC
# Line 33  diff -Nur e-smith-tinydns-2.4.0/root/etc Line 33  diff -Nur e-smith-tinydns-2.4.0/root/etc
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;
# Line 126  diff -Nur e-smith-tinydns-2.4.0/root/etc Line 126  diff -Nur e-smith-tinydns-2.4.0/root/etc
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  +    }  +    }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed