• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

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

0
GuildOfDruids
Asked:
GuildOfDruids
  • 2
  • 2
  • 2
  • +2
2 Solutions
 
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
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
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
 
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

Featured Post

Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

  • 2
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now