?
Solved

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

Posted on 2013-05-15
8
Medium Priority
?
784 Views
Last Modified: 2013-05-23
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.
0
Comment
Question by:NJTech22
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 4

Expert Comment

by:Rsilva98
ID: 39169813
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
0
 

Author Comment

by:NJTech22
ID: 39169821
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?
0
 
LVL 82

Expert Comment

by:David Johnson, CD, MVP
ID: 39169898
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
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 

Author Comment

by:NJTech22
ID: 39169909
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.
0
 
LVL 82

Expert Comment

by:David Johnson, CD, MVP
ID: 39170711
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 ??
0
 

Author Comment

by:NJTech22
ID: 39170865
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?
0
 
LVL 82

Accepted Solution

by:
David Johnson, CD, MVP earned 2000 total points
ID: 39177758
The web admin is an %%% opening the website in an ide and doing a global search and replace for www.example.com\ to \ is trivlal unless it is coded using notepad

As for moving your users to internal.example.com is something that is usually done in the planning stages of a network and has the potential of being disruptive to your business . You will have to go through each group policy.. Either way can be done but really the hard coded links have to go.
0
 

Author Closing Comment

by:NJTech22
ID: 39191852
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.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question