Changeset 129
- Timestamp:
- 09/30/11 17:29:57 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r128 r129 1281 1281 my $val = shift; 1282 1282 my $ttl = shift; 1283 1284 # Validation 1285 if ($rectype == $reverse_typemap{A} or $rectype == $reverse_typemap{AAAA}) { 1286 my $tmpip = new NetAddr::IP $val or 1287 return ("FAIL", "Address must be a valid IP address"); 1288 } 1283 1289 1284 1290 my $fields = ($defrec eq 'y' ? 'group_id' : 'domain_id').",host,type,val,ttl";
Note:
See TracChangeset
for help on using the changeset viewer.