DNS enables you to maintain host information centrally. As a result, you do not have to update the /etc/hosts file every time you add a new host to the network. If you have several filers on your network, maintaining host information centrally saves you from updating the /etc/hosts file on each filer every time you add or delete a host.
You can configure the filer to use one or more DNS servers either during the setup procedure or later using the Data ONTAP options at the command line.
If you configure DNS later, you need to
Note
If you want to use DNS as your primary method of host name resolution, specify it ahead of other methods in the hosts map in the /etc/nsswitch.conf file. For information about how to edit the nsswitch.conf file, see Changing the host name search order.
To create or edit the /etc/resolv.conf file, complete the following step.
To specify the DNS domain name, complete the following step.
Note
You can also use this procedure to change the domain name of the filer.
| 1 |
Enter the following command: options dns.domainname domain domain is the new domain name; for example, the domain name of a filer toaster.netapp.com is netapp.com. |
To disable or enable DNS, complete the following step.
| 1 |
options dns.enable {off|on}
|
DNS is disabled by default.
DNS name caching enables the DNS name resolver to speed up the process by which it converts host names into IP addresses. DNS name caching stores DNS requests by caching them so that they are easy to find the next time. Name caching improves DNS performance in the case of name server failure as well as reducing the time it takes for cluster takeover and giveback.
To disable or enable DNS name caching, complete the following step.
Caution
Disabling DNS name caching clears the DNS name cache.
| 1 |
options dns.cache.enable {on|off}
Use on to enable DNS name caching or off to disable DNS name caching. |
DNS name caching is enabled by default.
Entries in the DNS cache have a set expiration. If an entry that has expired is needed again, the filer contacts the DNS server to get an updated entry. However, if a DNS entry changes before it has expired, you must flush the DNS cache to force the filer to get the new DNS record.
If some of your DNS records change often, you should make sure that your DNS server transmits them with a low Time to Live (TTL). (You set this in the DNS server.) You can also disable DNS caching on the filer via the dns.cache.enable option, but this may have an adverse performance impact.
To flush the DNS cache, complete the following step.
| 1 |
dns flush |
You can display the following types of DNS information:
To display DNS information, complete the following step.
| 1 |
dns info |
>dns info
DNS is enabled
DNS caching is enabled
5 cache hits
8 cache misses
6 cache entries
0 expired entries
0 cache replacements
IP Address State Last Polled Avg RTT Calls Errs
------------------------------------------------------------------
172.19.2.2 UP Fri Sep 13 19:15:10 GMT 2002 430 12 0
172.19.2.16 ?? 0 0 0
172.19.3.11 ?? 0 0 0
Default domain: lab.netapp.com
Search domains: lab.netapp.com netapp.com
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00321
File: dns4.htm
Last updated: 01/20/03 14:16:51