Changeset 780
- Timestamp:
- 08/09/19 17:32:58 (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r779 r780 5676 5676 my $soaq = $res->query($zone, "SOA"); 5677 5677 die "Error retrieving SOA for $zone: ".$res->errorstring."\n" if !$soaq; 5678 my $ser = ($soaq->answer)[0]->{serial} 5678 my $ser = ($soaq->answer)[0]->{serial}; 5679 5679 if ($args{rwsoa}) { 5680 5680 if (!$args{keepserial}) { … … 6528 6528 my ($email, $primary) = (split /:/, $host)[0,1]; 6529 6529 my ($refresh, $retry, $expire, $min_ttl) = (split /:/, $val)[0,1,2,3]; 6530 my $serial = 0; 6530 my $serial = 0; # fail less horribly than leaving it empty? 6531 6531 if ($revrec eq 'y') { 6532 6532 ##fixme: have to publish SOA records for each v4 /24 in sub-/16, and each /16 in sub-/8 … … 6552 6552 ($serial) = $self->{dbh}->selectrow_array("SELECT zserial FROM domains WHERE domain=?", undef, $zone); 6553 6553 } # revrec <> 'y' 6554 $serial = '' if !$serial; # suppress a "uninitialized value" warning. empty serial isn't an error, just falls back to tinydns' autoser $6554 $serial = '' if !$serial; # suppress a "uninitialized value" warning. empty serial isn't an error, just falls back to tinydns' autoserial 6555 6555 print $datafile "Z$zone:$primary:$email:$serial:$refresh:$retry:$expire:$min_ttl:$ttl:$stamp:$loc\n" 6556 6556 or die $!; -
trunk/dnsdb.conf
r708 r780 2 2 3 3 ## Database connection info 4 #dbname = dsndb5 #dbuser = dnsdb6 #dbpass = dnsdbpwd7 #dbhost = dnsdbhost4 dbname = dnsdb 5 dbuser = dnsdb 6 dbpass = dnsdbpwd 7 dbhost = localhost 8 8 9 9 ## Mail settings … … 17 17 ## session - note this is fed directly to CGI::Session 18 18 ## timeout supports (s)econds, (m)inutes, (h)ours, (d)ays, (w)eeks, (M)months, or (y)ears 19 #timeout = 3h19 timeout = 48h 20 20 #sessiondir = /var/lib/dnsdb 21 21 … … 40 40 41 41 # number of entries to display in lists 42 #perpage = 25 42 perpage = 50 43 43 44 44 # fold domain names and hostnames to lowercase? … … 67 67 #rpc_iplist = billing, 172.12.12.12 68 68 #rpc_iplist = custportal, 192.168.1.12, 192.168.1.13 69 # note, can't do ranges or subnet slices 70 rpc_iplist = ipdb, 192.168.2.38
Note:
See TracChangeset
for help on using the changeset viewer.