Simplifying CNAME logic