Refactored to remove duplication.
CNAME