User's Manual

479
64.3.5 Define static host name-to-address mapping
Any IP address can correspond to a name, and the same name can correspond to many IP addresses. By
doing this, the command such as telnetping can use the names directly.
In congure use the following command:
Command Function
ip host
name address1[address2…]
Map a name to some IP address.
no ip host
name [address1…]
Delete a map.
Examplethe following express mapping a name to several IP addresses
router_config# ip host djh 172.16.20.209
router_config# ip host djh 172.16.20.210
or
router_config
#
ip host djh 172.16.20.209 172.16.20.210
If you want to delete, you can delete a IP address or delete many addresses or delete the host.
ro
uter_config# no ip host djh 172.16.20.209 /*delete a IP address mapping to a host name djh*/
router_config# no ip host djh 172.16.20.209 172.16.20.210
/**delete 2 IP address mapping to a host name djh*/
router_config# no ip host djh /*delete the host named djh*/
64.3.6 Specify times to retry a DNS query
When sending failing or not receiving the correspond, it can send again. By default , the retry times is 3 (times).
You can modify the retry times when neeing.
In congure use the following command
Command Function
ip domain retry
count
Set retry times
no ip domain retry
Restore to the default
64.3.7 Specify timeout waiting for response to a DNS query
When sending failing or not receiving the correspond, it can send againThis time is the interval time between
two sending.By default , the timeout value is 2 (seconds). You can modify the retry times when neeing.
In congure use the following command:
Command Function
ip domain timeou
t seconds
Set timout value.
no ip domain timeout
Restore to the default.
64.3.8 Delete the mapping of a host name to IP address in cache
The host having been queried will be set in cache. We can delete one or all of the hosts in cache. The command
can’t delete the static mapping of host and IP address.
In manager use the following command
Command Function