This section provides an example for configuring single-server smart DNS in ISP egress mode.
As shown in Figure 1, an enterprise deploys ISP1 server to provide the web service whose domain name is www.example.com. The private IP address of ISP1 server is 10.1.1.10, and the public IP address is 1.1.1.10. The DNS server on the enterprise intranet has the mapping between domain name www.example.com and ISP1 server public address 1.1.1.10.
When ISP1 users access www.example.com, the domain name can be resolved to public IP address 1.1.1.10 of the ISP1 server, then the access traffic be transmitted over the ISP1 network to the FW, and the FW can use the NAT Server function to map the public IP address to the private IP address 10.1.1.10 of the ISP1 server.
The enterprise also applies for a public IP address 2.2.2.10 from ISP2. The enterprise requires that when ISP2 users access www.example.com, the domain name can be resolved to this public IP address, then the access traffic be transmitted over the ISP2 network to the FW, and the FW can use the NAT Server function to map the public IP address to the private server IP address 10.1.1.10.
To enable ISP2 users to obtain ISP2 address 2.2.2.10, configure smart DNS in ISP egress mode to change IP address 1.1.1.10 after DNS resolution to 2.2.2.10.
Because only one web server is deployed on the intranet, you need to configure single-server smart DNS in ISP egress mode. The configuration roadmap is as follows:
Enable smart DNS.
Configure single-server smart DNS in ISP egress mode.
Configure the NAT server function.
Configure a NAT Server mapping for the FW to translate ISP1 public IP address 1.1.1.10 to the private IP address 10.1.1.10 of the ISP1 server, so that ISP1 users can access the ISP1 server using a public IP addresses.
Configure a NAT Server mapping for the FW to translate ISP2 public IP address 2.2.2.10 to the private IP address 10.1.1.10 of the ISP1 server, so that ISP2 users can access the ISP1 server using a public IP addresses.
Configure the sticky load balancing function.


Name |
isp1_server_nat |
|---|---|
Public IP Address |
1.1.1.10 |
Private IP Address |
10.1.1.10 |
Name |
isp2_server_nat |
|---|---|
Public IP Address |
2.2.2.10 |
Private IP Address |
10.1.1.10 |
of interfaces GigabitEthernet 0/0/1 and GigabitEthernet 0/0/2 respectively and configure sticky load balancing (in the example, basic interface settings, such as the interface IP addresses and default gateways, have been completed).
The sticky load balancing function can be configured only after the IP address and gateway address are set on the interface.

Run the ping www.example.com on the PC of an ISP2 user. The command output shows that the returned server address is 2.2.2.10.
On the FW, choose . The session table has the session entry with Destination Address being 2.2.2.10 and NAT Destination Address being 10.1.1.10.
# nat server isp1_server_nat global 1.1.1.10 inside 10.1.1.10 no-reverse nat server isp2_server_nat global 2.2.2.10 inside 10.1.1.10 no-reverse # dns-smart enable # dns-smart group 1 type single real-server-ip 1.1.1.10 out-interface GigabitEthernet0/0/2 map 2.2.2.10 # interface GigabitEthernet 0/0/1 ip address 1.1.1.2 255.255.255.0 redirect-reverse next-hop 1.1.1.1 gateway 1.1.1.1 # interface GigabitEthernet0/0/2 ip address 2.2.2.2 255.255.255.0 redirect-reverse next-hop 2.2.2.1 gateway 2.2.2.1