- Timestamp:
- 01/15/15 13:42:25 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns-rpc.cgi
r666 r671 211 211 $zoneid = $dnsdb->domainID($args{zone}) if $args{revrec} eq 'n'; 212 212 $zoneid = $dnsdb->revID($args{zone}) if $args{revrec} eq 'y'; 213 die "Can't find zone: $dnsdb->errstr\n" if !$zoneid;213 die "Can't find zone: ".$dnsdb->errstr."\n" if !$zoneid; 214 214 ($code,$msg) = $dnsdb->delZone($zoneid, $args{revrec}); 215 215 } … … 227 227 228 228 my $domid = $dnsdb->domainID($args{domain}); 229 die "$dnsdb->errstr\n" if !$domid;229 die $dnsdb->errstr."\n" if !$domid; 230 230 return $domid; 231 231 } … … 397 397 my $ret = $dnsdb->getRecLine($args{defrec}, $args{revrec}, $args{id}); 398 398 399 die "$dnsdb->errstr\n" if !$ret;399 die $dnsdb->errstr."\n" if !$ret; 400 400 401 401 return $ret; … … 430 430 431 431 # fail if we *still* don't have a valid zone ID 432 die "$dnsdb->errstr\n" if !$args{id};432 die $dnsdb->errstr."\n" if !$args{id}; 433 433 434 434 # and finally retrieve the records. … … 436 436 offset => $args{offset}, nrecs => $args{nrecs}, sortby => $args{sortby}, 437 437 sortorder => $args{sortorder}, filter => $args{filter}); 438 die "$dnsdb->errstr\n" if !$ret;438 die $dnsdb->errstr."\n" if !$ret; 439 439 440 440 return $ret; … … 458 458 id => $args{id}, filter => $args{filter}); 459 459 460 die "$dnsdb->errstr\n" if !$ret;460 die $dnsdb->errstr."\n" if !$ret; 461 461 462 462 return $ret; … … 543 543 my $reclist = $dnsdb->getRecList(defrec => 'n', revrec => 'y', 544 544 id => $zonelist->[0]->{rdns_id}, filter => $filt); 545 ##fixme: Figure some new magic to automerge new incoming A(AAA)+PTR requests 546 # with existing A records to prevent duplication of A(AAA) records 545 547 if (scalar(@$reclist) == 0) { 546 548 # Aren't Magic Numbers Fun? See pseudotype list in dnsadmin. … … 667 669 } else { 668 670 my $ret = $dnsdb->downconvert($rec->{record_id}, $DNSDB::reverse_typemap{A}); 669 die "$dnsdb->errstr\n" if !$ret;671 die $dnsdb->errstr."\n" if !$ret; 670 672 return "A+PTR for $args{cidr} split and PTR removed"; 671 673 }
Note:
See TracChangeset
for help on using the changeset viewer.