Fixed cname check