how does apex/cname work