inc/dns.inc.php
changeset 173 6d0e4e6bedad
parent 167 0b992665ac4d
child 182 049347a649e0
equal deleted inserted replaced
172:4708e6b152a0 173:6d0e4e6bedad
   282         $field_count = count($fields);
   282         $field_count = count($fields);
   283 
   283 
   284 	if ($field_count == 0 || $field_count > 7) {
   284 	if ($field_count == 0 || $field_count > 7) {
   285 		return false;
   285 		return false;
   286 	} else {
   286 	} else {
   287 		if (!is_valid_hostname_fqdn($fields[0]) || preg_match('/\.arpa\.?$/',$fields[0])) {
   287 		if (!is_valid_hostname_fqdn($fields[0],0) || preg_match('/\.arpa\.?$/',$fields[0])) {
   288 			return false;
   288 			return false;
   289 		}
   289 		}
   290 		$final_soa = $fields[0];
   290 		$final_soa = $fields[0];
   291 
   291 
   292 		if (isset($fields[1])) {
   292 		if (isset($fields[1])) {