Changeset 995


Ignore:
Timestamp:
01/22/26 18:11:32 (6 days ago)
Author:
Kris Deugau
Message:

/branches/cname-collision

Add a configuration option to set how to handle several cases of overlapping
timestamp expiry/valid-after cases checking for CNAME collisions
See #72

Location:
branches/cname-collision
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cname-collision/DNSDB.pm

    r990 r995  
    284284    warn "Bad showrev_arpa setting $self->{showrev_arpa}, using default\n";
    285285    $self->{showrev_arpa} = 'none';
     286  }
     287  if (!grep /$self->{coerce_cname_timestamp}/, ('none','adjust','full')) {
     288    warn "Bad coerce_cname_timestamp setting $self->{coerce_cname_timestamp}, using default\n";
     289    $self->{coerce_cname_timestamp} = 'none';
    286290  }
    287291
     
    23272331      $cfg->{lowercase}         = $1 if /^lowercase\s*=\s*([a-z01]+)/i;
    23282332      $cfg->{showrev_arpa}      = $1 if /^showrev_arpa\s*=\s*([a-z]+)/i;
     2333      $cfg->{coerce_cname_timestamp}    = $1 if /^coerce_cname_timestamp\s*=\s*([a-z]+)/i;
    23292334      $cfg->{template_skip_0}   = $1 if /^template_skip_0\s*=\s*([a-z01]+)/i;
    23302335      $cfg->{template_skip_255} = $1 if /^template_skip_255\s*=\s*([a-z01]+)/i;
  • branches/cname-collision/dnsdb.conf

    r901 r995  
    6060#lowercase = 0
    6161
     62# Variously coerce timestamp and valid-after/expiry flags onto a new/updated record if the
     63# record as requested would cause a CNAME to overlap with another record.
     64# adjust:  Adjust the timestamp where an expiry+valid-after would overlap
     65#   - existing record expires, new record has valid-after before expiry => adjust timestamp to match existing record
     66#   - existing record is valid-after, new record has expiry after valid-after => adjust timestamp to match existing record
     67# none: (default) Do not make changes to timestamps to avoid overlap
     68#coerce_cname_timestamp = none
     69
    6270# Show formal .arpa zone name instead of the natural IP or CIDR for reverse zone names and records?
    6371# Valid values are none, zone, record, or all
Note: See TracChangeset for help on using the changeset viewer.