Link to home
Start Free TrialLog in
Avatar of aaronjwood
aaronjwood

asked on

DNS Setting to resolve sites on local server

Hello,

I am hosting two web sites on a web server behind my firewall. When outsiders visit the sites, my firewall forwards port 80 to the web server and everything works fine. When a computer on the same subnet as the web server tries to resolve the domain name, it is being resolved to the public IP instead of the private IP of the web server. I am using DNS on my domain controller and the DC is on the same subnet as the web server. I know there is a way to set up the DNS so that it resolves internal requests to these two web sites to the private IP or FQDN of my web server, but I am not sure how to do this. Any and all help is appreciated.
Avatar of Darius Ghassem
Darius Ghassem
Flag of United States of America image

Check to see if you have a record in your DNS called www if you do you can delete this record because it is pointing your clients to the external IP address. Is your domain name the same internal and external? If it is you can setup A records in dns to point to your internal web pages.
Avatar of Jones911
Jones911

In DNS add a zone for the domain.  Add an A record that points to the internal IP address of the server.

Run ipconfig /flushdns and your good.
You just need to add the relevant domains to your DNS server and point them at the local IP address.  If you need more specific help on this please let me know.

Regards,

Ady
Three buses at the same time ;-)
Avatar of aaronjwood

ASKER

I need a bit more direction. The domain associated with the domain controller is not the same as the two sites being server. The domain is MyDomain.local on the domain and the sites are AnotherDomain.com and YetAnotherDomain.biz. Where do I add the domains in the DNS tree?
You add the new domains to the DNS tree at the same level as the MyDomain.local domain.

Regards,

Ady
Sorry, I am confused. Am I adding a new zone, or a record under the MyDomain.local zone?
ASKER CERTIFIED SOLUTION
Avatar of Ady Foot
Ady Foot
Flag of United Kingdom of Great Britain and Northern Ireland 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
OK, I added the zone and flushed the DNS but something is still not working. Here is what I get when I run nslookup.

Server: suntireinc.com.suntireinc.com
Address: 10.0.1.10

Name: suntireinc.com

Obviously the domain I want to resolve locally is suntireinc.com. When I try to bring it up in a browser I get a server not found error.
SOLUTION
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
I got it, I didn't read your post about adding the "www" A record. Sorry, it seems to be working now.