Changeset 275 for branches/dns/cgi-bin
- Timestamp:
- 08/10/05 13:45:18 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dns/cgi-bin/IPDB.pm
r274 r275 415 415 # We also do the rDNS for the pool here to save some sanity. 416 416 sub initPool { 417 my ($dbh,undef,$type,$city,$class,$rdns ,$domain) = @_;417 my ($dbh,undef,$type,$city,$class,$rdns) = @_; 418 418 my $pool = new NetAddr::IP $_[1]; 419 419 … … 439 439 $sth->execute($pool->addr); 440 440 # Insert rDNS entry 441 $sth2->execute($pool->addr,subst_rDNS($rdns,$pool->addr) .".".$domain);441 $sth2->execute($pool->addr,subst_rDNS($rdns,$pool->addr)); 442 442 } 443 443 for (my $i=0; $i<=$#poolip_list; $i++) { 444 444 $sth->execute($poolip_list[$i]->addr); 445 445 # Insert rDNS entry 446 $sth2->execute($poolip_list[$i]->addr, 447 subst_rDNS($rdns,$poolip_list[$i]->addr).".".$domain); 446 $sth2->execute($poolip_list[$i]->addr,subst_rDNS($rdns,$poolip_list[$i]->addr)); 448 447 } 449 448 $pool--; … … 451 450 $sth->execute($pool->addr); 452 451 # Insert rDNS entry 453 $sth2->execute($pool->addr,subst_rDNS($rdns,$pool->addr) .".".$domain);452 $sth2->execute($pool->addr,subst_rDNS($rdns,$pool->addr)); 454 453 } 455 454 } else { # (real netblock) … … 458 457 # Insert rDNS entry 459 458 $sth2->execute($poolip_list[$i]->addr, 460 subst_rDNS($rdns,$poolip_list[$i]->addr) .".".$domain);459 subst_rDNS($rdns,$poolip_list[$i]->addr)); 461 460 } 462 461 }
Note:
See TracChangeset
for help on using the changeset viewer.