Configuration Guide Configuring DNS
ip-address: indicates the IPv4 address of the DNS server.
Ipv6-address: indicates the IPv6 address of the DNS server.
Global configuration mode
Configuration Example
 Configuring Dynamic Domain Name Resolution
Device resolves the domain name through the DNS server (192.168.10.1) on the network.
Set the IP address of the DNS server to 192.168.10.1 on the device.
DEVICE#configure terminal
DEVICE(config)# ip name-server 192.168.10.1
DEVICE(config)# exit
Run the show hosts command to check whether the DNS server is specified.
Ruijie(config)#show hosts
Name servers are:
192.168.10.1 static
Host type Address TTL(sec)
6.5 Monitoring
Clearing
Running the clear command during device operation may cause data loss or even interrupt services.
Clears the dynamic host name cache
table.
Displaying