cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
257
Views
0
Helpful
1
Replies

why does nslookup return private NAT address internally and public address externally?

admin_2
Level 3
Level 3

Our e-mail server has a private address of 10.x.x.x with a static map in the NAT pool on our router. Our ISP maintains our DNS records. When using nslookup internally (on the 10.x.x.x network) it returns the private address of our e-mail server. When nslookup is run externally, the NAT (public) address is returned.

My question is what governs the address returned by the nslookup query?

1 Reply 1

Not applicable

from the FAQ for CISCO IOS NAT:

http://www.cisco.com/warp/public/cc/pd/iosw/ioft/iofwft/prodlit/iosnt_qp.htm

Q. Does Cisco IOS NAT support DNS queries?

A. Yes, Cisco IOS NAT will translate the address(es) which appear in DNS responses to name lookups (A queries) and inverse lookups (PTR queries). Thus, if an outside host sends a name-lookup to a DNS server on the inside, and that server responds with a local address, the NAT code will translate that local address to a global address. The opposite is also true, and is how we support IP addresses overlapping: an inside host queries an outside DNS server, the response contains an address that matches the access-list specified on the "outside source" command, so the code translates the outside global address to an outside local address.

Time-to-live (TTL) values on all DNS resource records (RRs) which receive address translations in RR payloads are automatically set to zero.

Cisco IOS NAT does not translate IP addresses embedded in DNS zone transfers.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: