Changeset 780


Ignore:
Timestamp:
08/09/19 17:32:58 (5 years ago)
Author:
Kris Deugau
Message:

/trunk

Remove some minor syntax and comment typos that snuck in

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r779 r780  
    56765676    my $soaq = $res->query($zone, "SOA");
    56775677    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};
    56795679    if ($args{rwsoa}) {
    56805680      if (!$args{keepserial}) {
     
    65286528    my ($email, $primary) = (split /:/, $host)[0,1];
    65296529    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?
    65316531    if ($revrec eq 'y') {
    65326532##fixme:  have to publish SOA records for each v4 /24 in sub-/16, and each /16 in sub-/8
     
    65526552      ($serial) = $self->{dbh}->selectrow_array("SELECT zserial FROM domains WHERE domain=?", undef, $zone);
    65536553    } # 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
    65556555    print $datafile "Z$zone:$primary:$email:$serial:$refresh:$retry:$expire:$min_ttl:$ttl:$stamp:$loc\n"
    65566556      or die $!;
  • trunk/dnsdb.conf

    r708 r780  
    22
    33## Database connection info
    4 #dbname = dsndb
    5 #dbuser = dnsdb
    6 #dbpass = dnsdbpwd
    7 #dbhost = dnsdbhost
     4dbname = dnsdb
     5dbuser = dnsdb
     6dbpass = dnsdbpwd
     7dbhost = localhost
    88
    99## Mail settings
     
    1717## session - note this is fed directly to CGI::Session
    1818## timeout supports (s)econds, (m)inutes, (h)ours, (d)ays, (w)eeks, (M)months, or (y)ears
    19 #timeout = 3h
     19timeout = 48h
    2020#sessiondir = /var/lib/dnsdb
    2121
     
    4040
    4141# number of entries to display in lists
    42 #perpage = 25
     42perpage = 50
    4343
    4444# fold domain names and hostnames to lowercase?
     
    6767#rpc_iplist = billing, 172.12.12.12
    6868#rpc_iplist = custportal, 192.168.1.12, 192.168.1.13
     69# note, can't do ranges or subnet slices
     70rpc_iplist = ipdb, 192.168.2.38
Note: See TracChangeset for help on using the changeset viewer.