isValidANSName

Checks if an ANS name is valid or not

Return

a Pair containing the domain name and optionally the subdomain name

Parameters

name

A string of the domain name, can include or exclude the .apt suffix