Changeset 249 for trunk/dns.sql


Ignore:
Timestamp:
02/29/12 12:42:40 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix lurking bug in SQL tabledef from early idea for default rdns
records
Fix logic bugs in A+PTR creation in default records:

  • we should NOT blindly prepend 'ZONE.' if it's present in the value/IP
  • we should not blindly append $config{domain} if ADMINDOMAIN is in the hostname
  • we need to check for "ZONE.1", "ZONE,1", and "ZONE::1" in the "does this PTR exist?" check because otherwise we'll silently end up with duplicates

Minor tweak to call to addRec() so that changes from validation
get propagated all the way back up the call chain.
See #26

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.sql

    r224 r249  
    5151);
    5252
    53 COPY default_rev_records (record_id, group_id, host, "type", ip, ttl, description) FROM stdin;
     53COPY default_rev_records (record_id, group_id, host, "type", val, ttl, description) FROM stdin;
    54541       1       hostmaster.ADMINDOMAIN:ns1.ADMINDOMAIN  6       3600:900:1048576:2560   3600   
    55552       1       unused-%r.ADMINDOMAIN   65283   ZONE    3600   
Note: See TracChangeset for help on using the changeset viewer.