/[smeserver]/rpms/e-smith-dnscache/sme7/e-smith-dnscache-1.0.0-reverse_delegation.patch
ViewVC logotype

Contents of /rpms/e-smith-dnscache/sme7/e-smith-dnscache-1.0.0-reverse_delegation.patch

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


Revision 1.2 - (show annotations) (download)
Tue Oct 7 18:01:45 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
FILE REMOVED
New streams

1 diff -Nur -x '*.orig' -x '*.rej' e-smith-dnscache-1.0.0/root/var/service/dnscache/run mezzanine_patched_e-smith-dnscache-1.0.0/root/var/service/dnscache/run
2 --- e-smith-dnscache-1.0.0/root/var/service/dnscache/run 2008-06-18 14:53:01.000000000 -0400
3 +++ mezzanine_patched_e-smith-dnscache-1.0.0/root/var/service/dnscache/run 2008-06-18 14:48:50.000000000 -0400
4 @@ -92,13 +92,18 @@
5 $nameserver = undef;
6 }
7 $nameserver ||= ($systemlocalnetwork eq 'yes') ? $tinydns_ip : 'none';
8 - push @localnetworks,
9 - esmith::util::computeAllLocalNetworkPrefixes ($key, $mask);
10 + my @all_network_prefixes = esmith::util::computeAllLocalNetworkPrefixes ($key, $mask);
11 + push @localnetworks, @all_network_prefixes;
12
13 - my $reverse = esmith::util::computeLocalNetworkReversed ($key, $mask);
14 - # Remove the trailing period provided by computeLocalNetworkReversed
15 - $reverse =~ s/\.$//;
16 - $reversenets{$reverse} = $nameserver unless ($nameserver eq 'none');
17 + unless ($nameserver eq 'none')
18 + {
19 + foreach (@all_network_prefixes)
20 + {
21 + my @quads = split(/\./, $_);
22 + my $reverse_zone = join('.', reverse @quads) . ".in-addr.arpa";
23 + $reversenets{$reverse_zone} = $nameserver;
24 + }
25 + }
26 }
27
28 allow_networks_2access_cache(@localnetworks);

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