cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
538
Views
0
Helpful
2
Replies

WAN to LAN - Destination NAT using hostname

Hello,

i've a local DNS Server (reacheable only inside the company) with Round Robin DNS record (one DNS record with 3 IP addresses) :

  • DNS RR record : server.mycomany.com
  • IP Addresses : 10.10.20.1 / 10.10.20.2 / 10.10.20.3

In a host perform a DNS request for server.mycomany.com, my DNS server returns (randomly) one of these IP : 10.10.20.1 / 10.10.20.2 / 10.10.20.3.

I would like to create a destination NAT (from WAN to LAN) by using the record name instead one of the 3 IP addresses (in order to keep the load balancing system).

 

I'd like implement something like this :

 

description "NAT FROM WAN"

destination {

     address 172.18.225.132

}

inside-address {

     address "server.mycomany.com"

}

 

Is it possible ?

2 Replies 2

rais
Level 7
Level 7

You can assign a NAT pool for inside addresses with option 'rotary'. When the client comes in it will be assigned one of the addresses in the pool. 

 

 ip nat pool name start-ip end-ip {netmask netmask | prefix-length prefix-lengthtype rotary

 

HTH.

Thank you for reply. I think that this could be a good solution for us.

Can you confirm that is impossible to use the "hostname" ?

 

Thank you

 

Review Cisco Networking for a $25 gift card