DNS Configuration Examples 979
Network diagram
Figure 296 Network diagram for DNS proxy
Configuration procedure
n
Before performing the following configuration, assume that Switch A, the DNS
server, and the host are reachable to each other and the IP addresses of the
interfaces are configured as shown in Figure 296.
1 Configure the DNS server
This configuration may vary with different DNS servers. When a Windows 2000
server acts as the DNS server, refer to “Dynamic Domain Name Resolution
Configuration Example” on page 975 for related configuration information.
2 Configure the DNS proxy
# Specify the DNS server 4.1.1.1.
<SwitchA> system-view
[SwitchA] dns server 4.1.1.1
# Enable DNS proxy.
[SwitchA] dns proxy enable
3 Configure the DNS client
# Enable the domain name resolution function.
<SwitchB> system-view
[SwitchB] dns resolve
# Specify the DNS server 2.1.1.2.
[SwitchB] dns server 2.1.1.2
1 Configuration verification
# Execute the ping host.com command on Switch B to verify that the host can be
pinged after the host’s IP address 3.1.1.1 is resolved.
3.1.1.1/24
host.com
Switch B
DNS client
Switch A
DNS proxy
IP network
DNS serve
2.1.1.1/24
2.1.1.2/24 1.1.1.1/24
4.1.1.1/24
Host