[Maintain-dev] [JIRA] Closed: (MNT-1375) SOA of nameservers are ignored even with glue

Frederic Wenzel (JIRA) jira at osuosl.org
Wed Mar 29 17:09:17 PST 2006


     [ http://bugs.osuosl.org/browse/MNT-1375?page=history ]
     
Frederic Wenzel closed MNT-1375:
--------------------------------

      Assign To: Frederic Wenzel  (was: Michael Clay)
     Resolution: Cannot Reproduce
    Fix Version: 3.0

that's probably no issue in MT3 anymore. If it still is, please re-file a bug.

> SOA of nameservers are ignored even with glue
> ---------------------------------------------
>
>          Key: MNT-1375
>          URL: http://bugs.osuosl.org/browse/MNT-1375
>      Project: Maintain
>         Type: Bug
>     Versions: 3.0
>     Reporter: James O'Dell
>     Assignee: Frederic Wenzel
>     Priority: Urgent
>      Fix For: 3.0

>
> Original Estimate: 3 minutes
>         Remaining: 3 minutes
>
> Using the "build" scripts for the bind9 config file "named.conf" does
> not work for the slave servers when the domain's SOA isn't "zone_master".
> The build script will always put the maintain.cfg's "zone_master" 
> for the slave's zone transfers regardless of how the domain's
> nameserver's SOA is configured.
> This does not work. The slave dns servers cannot do a zone transfer
> if the "zone_master" is configure as a "fake root". They must do
> zone transfer from the nameserver which is listed as the SOA for the 
> zone.
> Here is the patch I created to Maintain.pm
> ###################################################################
> --- save/Maintain.pm_Sept-6	2005-09-06 10:29:34.988313602 -0700
> +++ Maintain.pm	2005-09-06 11:43:06.473951438 -0700
> @@ -1783,7 +1783,17 @@
>  		print $fh qq{\ttype slave;\n};
>          	print $fh qq{\tfile "slaves/$domain";\n};
>          	print $fh qq{\tmasters \{\n};
> -		print $fh "\t\t" . $self->{'_config'}->{'zone_master'} . ";\n\t};\n";
> +
> +		$sql = qq{SELECT * FROM nameserver WHERE domain=$soa->{domain}};
> +		my $ns_sth = $dbh->prepare($sql);
> +		$ns_sth->execute();
> +		my $ns = $ns_sth->fetchrow_hashref();
> +		if ( $ns->{glue} ) {
> +			my  $glue_ip = inet_ntoa(pack N => $ns->{glue});
> +			print $fh "\t\t" . $glue_ip . ";\n\t};\n";
> +		} else {
> +			print $fh "\t\t" . $self->{'_config'}->{'zone_master'} . ";\n\t};\n";
> +		}
>  
>  		if ( $domain =~ /orst.edu|oregonstate.edu|193.128.in-addr.arpa/ ) {
>          		print $fh qq{\talso-notify \{\n};

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://bugs.osuosl.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



More information about the Maintain-dev mailing list