I have some problem. I have a CNAME dns record, it pointing to some site, which is alive and running normally. But, when i load it from a browser(all caches and cookies is completely erased), it return to a default cpanel page.
So i try, reset my dns cache, and try to check the record using host and nslookup tool. It look properly directed, and when i try to ping it properly directed to the site.
My question is, why there is difference in the way it resolving?
EDIT
Thanks for @AndrewB for pointing out there is a possible duplication.
Our current system is kinda like this, we have some users, that hosting a page on our system. But the page is accessed by other people(our user have their own customer) which probably doesn't know us. When the page is accessed from our domain(example.com) it works just fine. But few of our user also need a whitelabeling, by using their subdomain(dummy.com) but still serving the page in our domain.
Also, if we told our user to by create subdomain and using something like vhost or htaccess redirection. Then, that would be to complex, business wise, also by using htaccess redirection then the domain would revert back to our domain. Which is not supposed to work like that.
If dns record can't handle http redirection, is it possible to do something like this? If not, how should i approach it?
EDIT 26 March
Currently this question, by using a dedicated ip. The reference about dns alias and configuring web server much appreciated but don't exactly the answer.
Thank you.