/[smeserver]/rpms/e-smith-tinydns/sme8/e-smith-tinydns-2.2.0_allow_cname.patch
ViewVC logotype

Contents of /rpms/e-smith-tinydns/sme8/e-smith-tinydns-2.2.0_allow_cname.patch

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


Revision 1.1 - (show annotations) (download)
Thu Jul 29 14:28:58 2010 UTC (14 years, 4 months ago) by filippocarletti
Branch: MAIN
CVS Tags: e-smith-tinydns-2_2_0-2_el5_sme, HEAD
Error occurred while calculating annotation data.
* Thu Jul 29 2010 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-2.sme
- Allow use of CNAME in remote hosts [SME: 3132]

1 diff -Naur e-smith-tinydns-2.2.0-orig/root/etc/e-smith/templates/var/service/tinydns/root/data/60hostARecords e-smith-tinydns-2.2.0/root/etc/e-smith/templates/var/service/tinydns/root/data/60hostARecords
2 --- e-smith-tinydns-2.2.0-orig/root/etc/e-smith/templates/var/service/tinydns/root/data/60hostARecords 2006-03-14 23:01:42.000000000 +0100
3 +++ e-smith-tinydns-2.2.0/root/etc/e-smith/templates/var/service/tinydns/root/data/60hostARecords 2010-07-29 15:43:29.034923045 +0200
4 @@ -9,6 +9,12 @@
5 my $anIP = host2ip($h);
6
7 my $prefixchar = '+';
8 + if ($anIP !~ /^\d+\.\d+\.\d+\.\d+$/)
9 + {
10 + $prefixchar = 'C';
11 + }
12 + else
13 + {
14 my %reverse_lookups = get_reverse_lookup_choices();
15 # If this IP is spoken for, then we know which host to use for the
16 # reverse DNS lookup PTR.
17 @@ -32,6 +38,7 @@
18 # Note that this ip is taken.
19 $allocated_ips{$anIP} = 1;
20
21 + }
22 $OUT .= $prefixchar . $h->key . ":$anIP\n";
23 }
24 $OUT .= "\n";

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