cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
822
Views
5
Helpful
4
Replies

Issue with DNS using NAT between overlapping networks.

t.baranski
Level 4
Level 4

We have two overlapping LANs seperated by two 2600 routers. We're using the 'ip nat inside source static network' command on both routers to perform the address translation.

This has worked fine so far, but we're now having an issue putting a backup domain controller on the remote LAN. When trying to join it to the domain, it makes a DNS request to its DNS server (which is the PDC on the primary LAN) asking for the address of the domain's PDC. The PDC responds with it's own address. The address included in the DNS reply gets translated by the first router (good), but then gets translated again by the second router (bad) which changes the address back to what it was originally. The result of this is that the remote BDC thinks the PDC is on it's own subnet, and hence can't find it.

My understanding is that a Cisco router will translate the response in a DNS reply if it also translates the IP header. In this case, both routers are translating the IP header of the packet (the first router translates the source, the second translates the destination), so the DNS packet gets translated by both routers. So, the question is: is there any way to prevent the DNS reply from being translated on one of the routers while still having that router translate the IP header?

Thanks,

Terry

4 Replies 4

thisisshanky
Level 11
Level 11

An one stop solution to this is to do NAT only in a single router, rather than doing it at two ends.Are the 2600s being used to connect only between the two locations??. Then shift the NATing to just one router. Take a look at this link http://www.cisco.com/warp/public/556/3.html

Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus

Sounds as reasonable as anything. So perhaps adding an "ip nat outside source static network" to the first router and removing the NAT statement from the second will do the trick. I'll give it a shot.

Xactly! That should be a remedy for the issue!

Sankar Nair
UC Solutions Architect
Pacific Northwest | CDW
CCIE Collaboration #17135 Emeritus

This did the trick. Thanks a bunch.