Checks if an ANS name is valid or not
a Pair containing the domain name and optionally the subdomain name
A string of the domain name, can include or exclude the .apt suffix