How do I check if the URL accessing the page is the original URL or if it\'s a CNAME record.
For example, I have a site domain.com. Users can setup a CNAME
domain.com
You can use PHPDNS class library to find out what kind of DNS record is a given url.
$answer->results[x]->typeid //Textual record type ID (A, MX, CNAME etc)