Web Hosting Talk







View Full Version : DNS Question


theqase
01-17-2005, 10:32 PM
Sorry if this is the wrong place for this, but I really couldnt find a fitting forum above, so I thought I would ask here. If this is the wrong place... Mods, please move it. --Thanks

I have a webserver at work that is behind a firewall, therefore I have an 'Inside IP' and an 'Outside IP' thru which it can be accessed. Either way it has to be accessed thru both inside and out.

I also have the ability thru my WHM to create a zone file.

Is it possible to point my domain with the help of a zone file and WHM to both IP addresses.

So when I am inside the firewall, and type www.mydomain.com it will go to the 'inside ip' and when I am outside the firewall and i type www.mydomain.com it will go to the 'outside ip'?

would this be done by creating two 'A Records' or is this even possible?


Thanks, and again sorry if this is in the wrong place...

xyzulu
01-17-2005, 10:34 PM
You could edit your hosts file if you are using windows.

theqase
01-17-2005, 10:51 PM
Unfortunatly, this is for 150+ Users, on Macs. So the hosts file would not be an option.

Thanks though...

error404
01-17-2005, 11:39 PM
The only way I can think of is to dedicate a nameserver to the local network, and give it it's own authoritative copy of the zone with the local ips instead.

Your router should be able to deal with this though...why do you need to do it?

othellotech
01-19-2005, 07:11 PM
yep, internal nameserver would be the answer
externally the domain / host / a record will be fetched from the real nameserver associated with the domain

Internally the machines should be setup to use a lan based resolver which contains the alternate dns records, and forwards all other requests onto a real namserver to resolve

danjahner.com
01-20-2005, 01:09 AM
How about just pointing the A record to the external IP, then doing port forwarding to point the external IP port 80 over to the internal server's IP address? That usually works.