inc/record.inc.php
changeset 177 f40a03a3e849
parent 174 a17ec7de4bbb
child 181 76a304b484ed
equal deleted inserted replaced
176:18905ae8cca3 177:f40a03a3e849
   201         global $db;
   201         global $db;
   202         if (!is_valid_ipv4($master_ip) && !is_valid_ipv6($master_ip)) {
   202         if (!is_valid_ipv4($master_ip) && !is_valid_ipv6($master_ip)) {
   203                 error(ERR_DNS_IP);
   203                 error(ERR_DNS_IP);
   204 		return false;
   204 		return false;
   205         }
   205         }
   206         if (!is_valid_hostname($ns_name,0)) {
   206         if (!is_valid_hostname_fqdn($ns_name,0)) {
   207                 error(ERR_DNS_HOSTNAME);
   207                 error(ERR_DNS_HOSTNAME);
   208 		return false;
   208 		return false;
   209         }
   209         }
   210 	if (!validate_account($account)) {
   210 	if (!validate_account($account)) {
   211 		error(sprintf(ERR_INV_ARGC, "add_supermaster", "given account name is invalid (alpha chars only)"));
   211 		error(sprintf(ERR_INV_ARGC, "add_supermaster", "given account name is invalid (alpha chars only)"));