Updated lookup method to include CNAME's as well as A records