The Domain Name System (DNS) resolver is designed for local network domains where it enables use of a host name or fully qualified domain name to support DNS-compatible commands from the switch. DNS operation supports these features:
Up to three DNS servers can be configured. The addresses must be prioritized, and can be for any combination of IPv4 and IPv6 DNS servers.
|
|
NOTE: This section describes the commands for configuring DNS operation for IPv6 DNS applications. For further information and examples on using the DNS feature, see the Management and Configuration Guide for your switch. |
|
|
Syntax:
Used at the global config level to configure the address and priority of a DNS server. Allows for configuring up to three servers providing DNS service. (The servers must all be accessible to the switch.) The command allows both IPv4 and IPv6 servers in any combination and any order of priority.
priority <1–3>
: Identifies the order in which the specified DNS server will be accessed by a DNS resolution attempt. A resolution attempt tries each configured DNS server address, in ascending order of priority, until the attempt is successful or all configured server options have been tried and failed. To change the priority of an existing server option, you must remove the option from the switch configuration and re-enter it with the new priority. If another server address is configured for the new priority, you must also remove that address from the configuration before re-assigning its priority to another address.The
no
form of the command removes the specified address from the server address list configured on the switch.
: Specifies the address of an IPv6 or IPv4 DNS server.
<ip–addr>
Syntax:
Used at the global config level to configure the domain suffix that is automatically appended to the host name entered with a command supporting DNS operation. Configuring the domain suffix is optional if you plan to use fully qualified domain names in all cases instead of just entering host names.
You can configure up to three addresses for DNS servers in the same or different domains. However, you can configure only one domain name suffix. This means that a fully qualified domain name must be used to resolve addresses for hosts that do not reside in the same domain as the one you configure with this command. That is, if the domain name suffix and the address of a DNS server for that same domain are both configured on the switch, then you need to enter only the host name of the desired target when executing a command that supports DNS operation. But if the DNS server used to resolve the host name for the desired target is in a different domain than the domain configured with this command, then you need to enter the fully qualified domain name for the target.
The
no
form of the command removes the configured domain name suffix.
For example, suppose you want to configure the following on the switch:
Assume that the above, configured DNS server supports an IPv6 device having a host name of “mars-1” (and an IPv6 address of fe80::215:60ff:fe7a:adc0) in the “mygroup.hpnetworking.net” domain. In this case you can use the device's host name alone to ping the device because the mygroup.hpnetworking.net domain has been configured as the domain name on the switch and the address of a DNS server residing in that domain is also configured on the switch. The commands for these steps are as follows:
Configuring for a local DNS server and pinging a registered device
HP Switch(config)# ip dns server priority 1 2001:db8::127:10 HP Switch(config)# ip dns domain–name mygroup.hpnetworking.net HP Switch(config)# ping6 mars–1 fe80::215:60ff:fe7a:adc0 is alive, time = 1 ms
However, for the same “mars-1” device, if mygroup.hpnetworking.net was not the configured domain name, you would have to use the fully qualified domain name for the device named mars-1:
For further information and examples on using the DNS feature, see “DNS Resolver” in the current Management and Configuration Guide for your switch.