Changeset 823


Ignore:
Timestamp:
12/10/20 17:18:49 (3 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix buggy SRV record validation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r804 r823  
    10741074    # Not strictly true, but SRV records not following this convention won't be found.
    10751075    return ('FAIL',"SRV records must begin with _service._protocol [${$args{host}}]")
    1076         unless ${$args{host}} =~ /^_[A-Za-z-]+\._[A-Za-z]+\.[a-zA-Z0-9-]+/;
     1076        unless ${$args{host}} =~ /^_[A-Za-z\d-]+\._[A-Za-z]+\.[a-zA-Z0-9-]+/;
    10771077
    10781078    # SRV target check - IP addresses not allowed.  Must be a more or less well-formed hostname.
     
    10891089    # Not strictly true, but SRV records not following this convention won't be found.
    10901090    return ('FAIL',"SRV records must begin with _service._protocol [${$args{host}}]")
    1091         unless ${$args{val}} =~ /^_[A-Za-z]+\._[A-Za-z]+\.[a-zA-Z0-9-]+/;
     1091        unless ${$args{val}} =~ /^_[A-Za-z\d-]+\._[A-Za-z]+\.[a-zA-Z0-9-]+/;
    10921092
    10931093    # SRV target check - IP addresses not allowed.  Must be a more or less well-formed hostname.
Note: See TracChangeset for help on using the changeset viewer.