beautypg.com

43 dns commands, 1 ip host, 2 dns domain – CANOGA PERKINS 9175 Command Reference User Manual

Page 752

background image

CanogaOS Command Reference

43-1

43 DNS

Commands

43.1 ip host

To define static hostname-to-address mappings in the Domain Name System (DNS) hostname cache for

a DNS view, use the ip host command in global configuration mode. If the hostname cache does not

exist yet, it is automatically created. To remove a hostname-to-address mapping, use the no form of this

command.


Command Syntax

ip host hostname ip-address

no ip host hostname

hostname

Name of the host. The first character can be either a letter or a number. If you use a

number, the types of operations you can perform (such as ping) are limited.

ip-address

Associated host IP address.

Default

No static hostname-to-address mapping is added to the DNS hostname cache for a DNS view.


Command Mode

Global configuration


Usage


Examples

The following example shows how to add a mapping entry to the global hostname cache and then

remove one of those entries from the global hostname cache:

Switch(config)# ip host www.example1.com 192.0.2.141


Related Commands

show ip host

43.2 dns domain

To specify the default domain for a Domain Name System (DNS) view to use to complete unqualified

hostnames (names without a dotted-decimal domain name), use the dns domain command in global

configuration mode. To remove the specification of the default domain name for a DNS view, use the no

form of this command.


Command Syntax

dns domain domain-name