Changeset 2061


Ignore:
Timestamp:
12/20/07 05:37:30 (6 years ago)
Author:
anarcat
Message:

don't invalidate a complete master for a single error

allow dashes in hostnames and numerals at the start of labels (even
though RFC1035 explicitely forbids it, 1984comic.com is alive and well)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc-slavedns/trunk/alternc-slavedns

    r1984 r2061  
    4646    do 
    4747      # check if the data is valid, this will also display the domain in debug mode 
    48       if ! echo $domain | grep -i '^\([a-z][a-z0-9]*\.\)*[a-z][a-z0-9]*$' | MaybeCat 
     48      if ! echo $domain | grep -qi '^\([a-z0-9]\([-a-z0-9]*[a-z0-9]\)\?\.\)*[a-z0-9]\([-a-z0-9]*[a-z0-9]\)$' 
    4949      then 
    50           echo invalid domain listing: $domain, skipping file $CFILE >&2 
    51           rm -f ${BINDDIR}/${CFILE}.$$ 
    52           return 
     50          echo invalid domain listing: $domain, skipping >&2 
     51          continue 
    5352      fi 
    5453      cat >> ${BINDDIR}/${CFILE}.$$ <<EOF 
Note: See TracChangeset for help on using the changeset viewer.