beautypg.com

Chapter 61 commands for dnsv4/v6, 1 clear dynamic-host, 2 debug dns – PLANET XGS3-24040 User Manual

Page 847: 3 dns-server, Clear dynamic, Host, Debug dns, Server

background image


61-1

Chapter 61 Commands for DNSv4/v6

61.1 clear dynamic-host

Command: clear dynamic-host { | | all}

Function: To delete the domain entry of specified address or all address in dynamic cache.

Parameter: is the IP address, in dotted decimal notation; is the IPv6

address; all is to delete the domain entry of all address in dynamic cache.

Command Mode: Admin Mode.

Default: Disabled.

Usage Guide: This command is used to manually delete the domain name and address entry in dynamic

cache, this command is much useful when domain name have lived long time in cache.

Example: To delete the address of 202.108.22.5 of domain entry.

Switch(config)# clear dynamic-host 202.108.22.5

61.2 debug dns

Command: debug dns {all | packet [send | recv] | events | relay}

no debug dns {all | packet [send | recv] | events | relay}

Function: To display the application debug information of DNS domain name resolution, the no form of

this command disables the debug display.

Parameter: None.

Command Mode: Admin Mode.

Example:

Switch# debug dns all

Switch# ping host www.sina.com.cn

%Jan 01 00:03:13 2006 domain name www.sina.com.cn is to be parsed!

%Jan 01 00:03:13 2006 Dns query type is A!

%Jan 01 00:03:13 2006 Connect dns server 10.1.120.241 ......

ping www.sina.com.cn [202.108.33.32]

Type ^c to abort.

Sending 5 56-byte ICMP Echos to 202.108.33.32, timeout is 2 seconds.

%Jan 01 00:03:15 2006 Host:www.sina.com.cn Address:202.108.33.32

.....

Success rate is 0 percent (0/5), round-trip min/avg/max = 0/0/0 ms

61.3 dns-server

Command: dns-server {|} [priority ]

no dns-server {|}

Function: To configure/delete DNS server.