Configuring a DNS entry
The switch allows up to two DNS server entries (IP addresses for DNS servers). One domain suffix can also be configured to support resolution of DNS names in that domain by using a host name only. Including the domain suffix enables the use of DNS-compatible commands with a target's host name instead of the target's fully qualified domain name.
Syntax:
no ip dns server-address priority <1-3> <ip-addr>
Configures the access priority and IP address of a DNS server accessible to the switch. These settings specify:
The relative priority of the DNS server when multiple servers are configured
The IP address of the DNS server
These settings must be configured before a DNS-compatible command can be executed with host name criteria.
The switch supports two prioritized DNS server entries. Configuring another IP address for a priority that has already been assigned to an IP address is not allowed.
To replace one IP address at a given priority level with another address having the same priority, you must first use the
no
form of the command to remove the unwanted address. Also, only one instance of a given server address is allowed in the server list. Attempting to enter a duplicate of an existing entry at a different priority level is not allowed
.
To change the priority of an existing server address, use the
no
form of the command to remove the entry, then re-enter the address with the new priority.
The
no
form of the command replaces the configured IP address with the null setting. (Default: null)
Syntax:
no ip dns domain-name <domain-name-suffix>
This optional DNS command configures the domain suffix that is automatically appended to the host name entered with a DNS-compatible command. When the domain suffix and the IP address for a DNS server that can access that domain are both configured on the switch, you can execute a DNS-compatible command using only the host name of the desired target. (For an Example:, see Figure 62: Example: of using either a host name or a fully qualified domain name.) In either of the following two instances, you must manually provide the domain identification by using a fully qualified DNS name with a DNS-compatible command:
If the DNS server IP address is configured on the switch, but the domain suffix is not configured (null).
The domain suffix configured on the switch is not the domain in which the target host exists.
The switch supports one domain suffix entry and three DNS server IP address entries. (See the preceding command description.)
The
no
form of the command replaces the configured domain suffix with the null setting. (Default: null)