NetApp
Configuration : Network > Network Files : Understanding network file configuration : How the /etc/hosts file works

How the /etc/hosts file works
Data ONTAP uses the /etc/hosts file to resolve host names to IP addresses. You need to keep the /etc/hosts file up-to-date. Changes to the /etc/hosts file take effect immediately.
When Data ONTAP is first installed, the /etc/hosts file is automatically created with default entries for the following interfaces:
•
•
The /etc/hosts file resolves the host names for the storage system on which it is configured. This file cannot be used by other systems for name resolution.
For more information about file formats, see the na_hosts(5) man page.
You can add IP address and host name entries in the /etc/hosts file in the following two ways:
•
•
Remotely—If the file has many entries and you have access to an NIS makefile master, you can use the NIS makefile master to create the /etc/hosts file. This method prevents errors that might be caused by editing the file manually.


Was this topic helpful? Send comments to NetApp.