It is often the case that companies use their external domain (i.e. enirtia.com) for their internal Active Directory domain, and this is completely fine, except when you want to access your website which is hosted on an external server.
Active Directory automatically sets up an internal DNS server for use on your network, and assumes that it is the Authorative server for the domain you used, which in our case here is “example.com”. When clients on your internal network ask your Active Directory DNS server for a lookup on example.com it is going to direct them to one of your domain controllers. If you request”www.enirtia.com” and you happen to have IIS running on one of those domain controllers you will see whatever the default website that is running on that server.
To get around this we need to add a redirect to your IIS server, a Host record to your internal DNS server, and a delegation to your DNS server, all of which are simple to do. These changes are based on the assumption that your external website is setup on external DNS servers with an “A” record pointing”www.enirtia.com” to the IP address of the server that is hosting your website, and that example.com without the “www” is setup with a CNAME record pointing at”www.enirtia.com”. If it is setup in the opposite manner this will not work.
Host Record:
First find out what the IP address is of the external web server if you do not already know it. Go to Start > Control Panel > Administrative Tools > DNS and locate example.com. Right-click and choose “New Host (A or AAAA)”. Type “www” into the name field, and the IP address of your external web server into the IP Address field. Click the “Add Host” button to save.
IIS Redirect:
To redirect “http://enirtia.com” to “http://www.enirtia.com we need to create a redirect in your IIS server. Go to Start > Control Panel > Administrative Tools > Internet Information Services and locate the Default Web Site. Right-Click on the default web site, and choose Properties. Go to the Directory tab and setup a redirect to point to”www.enirtia.com”.
DNS Delegation:
To create a DNS Delegation you must know the names of external name servers servicing your domain name. Go to Start > Control Panel > Administrative Tools > DNS and locate example.com. Right-Click and choose “New Delegation”. Type www into the Delegated Domain field, click next and provide it with external authorative name servers for your domain name.