Discussion Locked

DNS, Firewall and 1 to 1 NAT

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

My firewall is using 1 to 1 NAT; and I have serveral pubic ip addresses that are being mapped to internal ip addresses. With Windows 2000 DNS, when I setup the Primary zone, it will use the private ip address of the server that it is sitting on (172.22.18.2), however those trying to get to my DNS server from the internet will use a public Ip address (21.172.22.x). Should the IP address in the name server host record be the public or private ip address ? Again keep in mind that i am doing 1 to 1nat at the firewall and my dns servers are behind the firewall.

Thank you
rbowe@familyguardian.com

7 replies

by pan 13 x

set the name server to be both the private and public address, make a alis for the server to use the exturnal address so the outside people can hit it.

by deltree

Let me see if I can answer your ? step by step. I'm new to this technology.
1. Lets say an internet host needs access to an internal email server named "mailsvr".
When the internet host sends its request, it will end up at your ISP's DNS server which will then forward those requests to a specific (or multiple) public IP addresses which it has in a forward lookup zone with your registered domain name, which points to the public IP address that is mapped to your DNS server.
2. The request ends up at your DNS server which looks for the "mailsvr" host record in its forward lookup zones. It finds one.
3. If the IP address entry were an internal address, then the DNS server would return that address to the internet host.
4. The internet host would then try to contact the internal email server using the 172.22.x.x address. It will not find this address since it is not one of your public addresses.

You see where I'm going. The DNS server must sent internet hosts the public IP addresses you have registered for Internet hosts to communicate with your internal network.

This seems clear enough.

What confuses me is, what happens to name resolution for internal hosts? It looks like they will be resolved to the external
IP's at the firewall. I'm not sure yet how to resolve this one.

by poo_music

I have the same problem as you. Dont think too many thing that might jam up or messed up your Network as well as your AD. Just set up a new Win2k, set up a DNS. The server cann be behind the firewall but do add another public IP as a virtual IP to the server, where 1 to 1 NAT. Your DNS, just set it up with External IP address, add up all the record you want. Isnt it easy? Remember, messed up DNS will cause your AD to be problematic.
Cheers!

This discussion is closed to new replies.