Link to home
Start Free TrialLog in
Avatar of NJTech22
NJTech22Flag for United States of America

asked on

Server 2008 DNS Server internal domain and external website domain same name issue. Need to access external domain (company website) internally without using www.

Hello:

My clients dns server domain is the same as their company website domain.  I understand about adding the a record with "www" pointing to the website host ip which I have done.  My problem is that we need to be able to access the same domain externally without using the "www" prefix.  We need to be able to open the site using just domain.com due to the way the site is coded.  Would this be a forwarder that needs to be created so they can access it internally?  Any help on this would be appreciated.
Avatar of Rsilva98
Rsilva98
Flag of Portugal image

You need to configure  your DNS with an
@ A record that points to your web server.

For example if you have your domain.com and your webserver at xxx.xxx.xxx.1 then you would have an entry like @ A xxx.xxx.xxx.1
Avatar of NJTech22

ASKER

Thanks for the reply.  I have already added the a record with the external ip and left the host field blank (@).  So there are now two a records like this listed in dns.  One that points to the internal domain server ip address and one that points to the external website ip address.  It seems the internal ip address is taking precedence because I am unable to resolve the domain to my external website without using www on any of the client computers.  I tried deleting the a record that points to the internal ip address but it recreates itself.  I am able to browse to the site on the client desktops after I delete it but once it recreates itself it no longer works.  Do I make sense?
Avatar of David Johnson, CD
externally you need to set your registrars dns setting to your external address.
Your domain needs to resolve itself which is why you can't delete it permanently.

For the website can't you change the bindings to have both the www and the non-www entries in iis?

Are you hosting the website within your domain or is it externally hosted?

What we have done is have all the local machines to be a member of corp.example.com as we can no longer get certificates for example.local to work around the external/internal naming problem.

Coming from the outside you can use a router to send all port 80 http requests to a particular machine but internally you can't

For example at your registrar you set your name server entries to ns1.example.com 172.10.10.10 and ns2.example.com to 173.10.10.11

An external user then looks up example.com which then goes to root servers and then to your name server entries   and resolves the name to 172.10.10.10 and then port 80 tcp is redirected to 192.168.10.10
internally it uses the local dns server which it just picks a domain controller at random. (whichever answers first) which then resolves the address to its internal address or whatever dns entries you have in the dhcp settings. Best practices is to have more than 1 dns server i.e. 192.168.10.10 and 192.168.10.11 and if you just do a http:\\example.com it may resolve to either 10.10 or 10.11 as these dns servers are authoritative for example .com
The website is hosted externally.  The domain registrars dns settings are already pointing to the external web host ip address.  The webdesigner has all the links within the website using domain.com rather than www.domain.com so this is where I believe the issue is.  Unfortunately it is a lot of work to redo all the links to include www so that is what we are trying to avoid.
You may not be able to access that site from within your network. as example.com should point to your network ONLY.  You could host the website on your LAN ???

What is more work?  changing the links to either relative links without the http:\\example.com\pages\pag1.htm -> \pages\pag1.htm or even a search and replace for http:\\example.com to http:\\www.example.com THAT OR restructuring your domain to  something like internal.example.com ??
The web admin is giving a hard time about updating the links on the site. Is it possible to restructure the domain to something like internal.example.com?  If so how would I go about that without causing a ruckus?
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
After speaking with the web designer and declining his request for me to reconfigure the server, he will be updating all the links on the site to include www so hopefully this will soon be resolved.  Thanks everyone for your quick and knowledgeable responses.  Much appreciated.