Internal DNS points to internal server, yet site resolves to public site?

We have a website website.test.company.com and in internal DNS (server 2012 r2) it has 10.0.0.21, which is our server address internally. However when we type in www.website.test.company.com it resolves to website.com and shows the live page instead of our test server? I cannot think of why this would be can anyone point me in a direction, in my mind the http path shouldnt even get outside of the gateway?


Solution 1:

In the world of DNS website.test.company.com and www.website.test.company.com are two completely different URLs.

Whether you are running Windows or Linux and your webserver you need to make you sure have either an alias for www.website.test.company.com or a binding in IIS for www.website.test.company.com

You also want to make sure you have a CNAME record setup on your internal DNS for www.website.test.company.com or if you want create a new A record for www.website.test.company.com