Enabling dhcp starvation attack protection, Dns proxy configuration example – H3C Technologies H3C S12500 Series Switches User Manual

Page 90

Advertising
background image

77

Figure 34 Adding a mapping between domain name and IP address

2.

Configure the DNS client:
# Specify the DNS server 2.1.1.2.

<Sysname> system-view

[Sysname] dns server 2.1.1.2

# Configure com as the name suffix.

[Sysname] dns domain com

360B

Verifying the configuration

# Use the ping host command on the device to verify that the communication between the device and the

host is normal and that the translated destination IP address is 3.1.1.1.

[Sysname] ping host

PING host.com (3.1.1.1): 56 data bytes

56 bytes from 3.1.1.1: icmp_seq=0 ttl=255 time=1.000 ms

56 bytes from 3.1.1.1: icmp_seq=1 ttl=255 time=1.000 ms

56 bytes from 3.1.1.1: icmp_seq=2 ttl=255 time=1.000 ms

56 bytes from 3.1.1.1: icmp_seq=3 ttl=255 time=1.000 ms

56 bytes from 3.1.1.1: icmp_seq=4 ttl=255 time=2.000 ms

--- host.com ping statistics ---

5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss

round-trip min/avg/max/stddev = 1.000/1.200/2.000/0.400 ms

235B

DNS proxy configuration example

361B

Network requirements

When the IP address of the DNS server changes, you must configure the new IP address of the DNS

server on each device on the LAN. To simplify network management, you can use the DNS proxy

function.

Advertising