Changeset 611
- Timestamp:
- 04/16/14 17:45:52 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r610 r611 504 504 505 505 return ('FAIL', $errstr) if !$self->_inrev($args{val}, $revzone); 506 507 # ${$args{val}} is either a valid IP or a string ending with the .arpa zone name; 508 # now check if it's a well-formed FQDN 509 return ('FAIL', $errstr) if ! _check_hostname_form($args{val}, $$rectype, $defrec, $revrec) 510 if ${$args{val}} =~ /\.arpa$/; 506 511 507 512 # Check IP is well-formed, and that it's a v4 address … … 3896 3901 return ('FAIL', "TTL must be numeric") unless $ttl =~ /^-?\d+$/; 3897 3902 3898 # Quick check on hostname parts. There are enough variations to justify a sub now.3899 return ('FAIL', $errstr) if ! _check_hostname_form($$host, $$rectype, $defrec, $revrec);3900 3901 3903 # Collect these even if we're only doing a simple A record so we can call *any* validation sub 3902 3904 my $dist = shift; … … 4059 4061 # do simple validation first 4060 4062 return ('FAIL', "TTL must be numeric") unless $ttl =~ /^-?\d+$/; 4061 4062 # Quick check on hostname parts. There are enough variations to justify a sub now.4063 return ('FAIL', $errstr) if ! _check_hostname_form($$host, $$rectype, $defrec, $revrec);4064 4063 4065 4064 # only MX and SRV will use these
Note:
See TracChangeset
for help on using the changeset viewer.