XGS-5240-Series User Manual

Table Of Contents
Configuration Guide of XGS-5240-Series
69-4
Admin Mode and Configuration Mode
show dns name-server
To show the configured DNS server infor
mation.
show dns domain-list
To show the configured DNS domain na
me suffix information.
show dns hosts
To show the dynamic domain name infor
mation of resolved by switch.
show dns config
Display the configured global DNS inform
ation on the switch.
show dns client
Display the DNS Client information maint
ained by the switch.
debug dns {all | packet [send | recv]
| events | relay}
no debug dns {all | packet [send | r
ecv] | events | relay}
To enable/disable DEBUG of DNS functio
n.
69.3 Typical Examples of DNS
Fig 3-1 DNS CLIENT typical environment
As shown in fig, the switch connected to DNS server through network, if the switch
want to visit sina Website, it neednt to know the IPv4/IPv6 address of sina Website,
only need is to record the domain name of sina Website is www.sina.com.cn. The DNS
server can resolute out the IPv4/IPv6 address of this domain name and send to switc
h, then the switch can visit sina Website correctly. The switch is configured as DNS cli
ent, basic configurations are as below: first to enable DNS dynamic domain name resol
ution function on switch, and configure DNS server address, then with some kinds of to
DNS SERVER
IP: 219.240.250.101
IPv6: 2001::1
ip domain-lookup
dns-server 219.240.250.101
dns-server 2001::1
SWITCH
INTERNET