Remote DNS: Getting zone id of subdomain prohibited by regex
Currently it is not possible to get a DNS zone id for any kind of subdomain. The source of the issue is a regex domain name check which only allows for exactly one dot in a domain name:
I manually changed the regex, effectively allowing dots in the second character group - and everything works fine. My changed part of the method dns_zone_get_id:
if(!preg_match('/^[a-z0-9][a-z0-9\-\.]+[a-z0-9](\.[a-z]{2,4})+$/i', $origin)){
throw new SoapFault('no_domain_found', 'Invalid domain name.');
return false;
}
I personally see no harm in this since this method is only getting information from the database. If you could include it in some future release I could stop patching it myself and would be very happy!