- Timestamp:
- 12/10/20 17:18:49 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r804 r823 1074 1074 # Not strictly true, but SRV records not following this convention won't be found. 1075 1075 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-]+/; 1077 1077 1078 1078 # SRV target check - IP addresses not allowed. Must be a more or less well-formed hostname. … … 1089 1089 # Not strictly true, but SRV records not following this convention won't be found. 1090 1090 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-]+/; 1092 1092 1093 1093 # 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.