Command Reference Guide

DNS Client Commands
CLI Command Reference
September 2014 Page 210
HP Moonshot Switch Module CLI Command Reference
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 HP Moonshot Switch Module.
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 HP Moonshot Switch Module 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.
Example: The CLI command
ip domain name yahoo.com will configure yahoo.com as a default domain name.
For an unqualified hostname xxx, a DNS query is made to find the IP address corresponding to
xxx.yahoo.com.
no ip domain name
Use this command to remove the default domain name configured using the ip domain name command.
Default enabled
Format
ip domain lookup
Mode Global Config
Format
no ip domain lookup
Mode Global Config
Default none
Format
ip domain name name
Mode Global Config
Format
no ip domain name
Mode Global Config