Previous Topic

Next Topic

Book Contents

DNS Client Commands

These commands are used in the Domain Name System (DNS), an Internet directory service. DNS is how domain names are translated into IP addresses. When enabled, the DNS client provides a hostname lookup service to other components of TEJOS.

ip domain lookup

Use this command to enable the DNS client.

no ip domain lookup

Use this command to disable the DNS client.

ip domain name

Use this command to define a default domain name that TEJOS software uses to complete unqualified host names (names with a domain name). By default, no default domain name is configured in the system. name may not be longer than 255 characters and should not include an initial period. This name should be used only when the default domain name list, configured using the ip domain list command is empty.

no ip domain name

Use this command to remove the default domain name configured using the ip domain name command.

ip domain list

Use this command to define a list of default domain names to complete unqualified names. By default, the list is empty. Each name must be no more than 256 characters, and should not include an initial period. The default domain name, configured using the ip domain name command, is used only when the default domain name list is empty. A maximum of 32 names can be entered in to this list.

no ip domain list

Use this command to delete a name from a list.

ip name server

Use this command to configure the available name servers. Up to eight servers can be defined in one command

or by using multiple commands. The parameter <server-address> is a valid IPv4 or IPv6 address of the server. The preference of the servers is determined by the order they were entered.

no ip name server

Use this command to remove a name server.

ip host

Use this command to define static host name-to-address mapping in the host cache. The parameter <name> is host name and <ip-address> is the IP address of the host. The hostname can include 1-158 alphanumeric characters, periods, hyphens, underscores, and non-consecutive spaces. Hostnames that include one or more space must be enclosed in quotation marks, for example "lab-pc 45".

no ip host

Use this command to remove the name-to-address mapping.

ipv6 host

Use this command to define static host name-to-IPv6 address mapping in the host cache. The parameter <name> is host name and <v6 address> is the IPv6 address of the host. The hostname can include 1-158 alphanumeric characters, periods, hyphens, and spaces. Hostnames that include one or more space must be enclosed in quotation marks.

no ipv6 host

Use this command to remove the static host name-to-IPv6 address mapping in the host cache.

ip domain retry

Use this command to specify the number of times to retry sending Domain Name System (DNS) queries. The parameter number indicates the number of times to retry sending a DNS query to the DNS server. This number ranges from 0 to 100.

no ip domain retry

Use this command to return to the default.

ip domain timeout

Use this command to specify the amount of time to wait for a response to a DNS query. The parameter seconds specifies the time, in seconds, to wait for a response to a DNS query. The parameter seconds ranges from 0 to 3600.

no ip domain timeout

Use this command to return to the default setting.

clear host

Use this command to delete entries from the host name-to-address cache. This command clears the entries from the DNS cache maintained by the software. This command clears both IPv4 and IPv6 entries.

show hosts

Use this command to display the default domain name, a list of name server hosts, the static and the cached list of host names and addresses. The parameter <name> ranges from 1-255 characters. This command displays both IPv4 and IPv6 entries.

The display parameters for above command are:

See also

Utility Commands

System Information and Statistics Commands

Logging Commands

Email Alerting and Mail Server Commands

System Utility and Clear Commands

Simple Network Time Protocol (SNTP) Commands

DHCP Server Commands

IP Address Conflict Commands

Serviceability Packet Tracing Commands

Cable Test Command

sFlow Commands

Switch Database Management Template Commands