local domain name and websites with same name

Hi,

We have a windows DNS Server configured as mycompany.com which resolve to 192.168.0.10.

Now the problem is we have a website mycompany.com which when we try to access through browser it doesn't go to the website because the local dns is resolving it to local ip address. We can add a manual hosts file entry on every machine but is there any other work around on dns settings?


Thanks in advance

GuildOfDruidsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MarakushCommented:
What DNS server are you using?

Also if it is a MS DNS service running on a Windows box, yes you can enter a manual host "A" record that points to the web server not hosted locally.
0
Vaidas911Commented:
Is that DNS Server integrated to your domain Active Direcory? Is your domain name the same like website (e.g. mycomany.com)?
0
GuildOfDruidsAuthor Commented:
@Marakush
Yes it's Windows DNS Server. I know I could do a manual hosts entries, but I have more than 60 computers i can't do it manually. But that's not the point, I was wonder if there is any settings to be change at DNS which could solve the issue.

@Vaidas911
Yes it's a domain (mycompany.com) DNS Server which is integrated into the active directory, and this domain name is the same as our website (mycompany.com)


0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Chris DentPowerShell DeveloperCommented:

If mycompany.com is used by AD then it needs to stay that way. Your clients need to be able to resolve that address to your DC(s).

You can use http://www.mycompany.com (needs you to create a Host, A, record on your internal DNS system), just not http://mycompany.com.

There are work-arounds, including:

1. Configure redirection on each DC so http://mycompany.com is sent to http://www.mycompany.com.

2. Rename the AD domain (can't be done in a number of scenarios, including SBS, Exchange 2007, Exchange 2010, etc).

Neither is ideal, they rarely are.

Chris
0
AwinishCommented:
Create a host records www  in your dns server pointing to the IP of the website & it will work.
Ex 202.50.30.24
host record www 202.50.30.24
 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vaidas911Commented:
If you have only one Domain controler, it will respond then you ping mycompany.com. On that domain controler install IIS (hope it's not already there) and start Default web site on port 80 (no configuration needed I guess).
In C:\Inetpub\wwwroot create default.asp with code attached to redirect your web trafic to www.mycompany.com.
Create Host A record www 72.12.12.2 (your external site IP).
In this scenario if user enters www.mycompany.com - he goes directly to your external web site (acording to DNS). If he writes just mycompany.com - he gets to domain controlers IIS and gets redirected to external site.
Hope this helps.
Paulauskis
<%@ Language=VBScript %>
 <%Response.Buffer = true%>
 <HTML>
 <HEAD>
 <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
 </HEAD>
 <BODY>
 			
 <%
 response.redirect "http://www.mycompany.com"
 %>
 
 </BODY>
 </HTML>

Open in new window

0
Chris DentPowerShell DeveloperCommented:

You don't need the asp page to do that, configure the site as a Redirection to a URL in IIS, same end-result, less work.

Chris
0
GuildOfDruidsAuthor Commented:
Here is what I did to solve the issue based on the selected replies.


1: At DNS server I created (A) host record for www and put the external IP address of the website.
2.      Configure IIS at Domain Controller to redirect to your website i.e. www.triplewestmedical.com 
3.      I have two domain controllers so I repeated step 2 at second domain controller.


Thanks guys you are awesome.

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DNS

From novice to tech pro — start learning today.