Library Table of Contents Index Previous Next Comments

Changing the host name search order

How the host name search order is determined  Top

If you use more than one method for host name resolution, you must specify the order in which each name resolution service is used. This order is specified in the /etc/nsswitch.conf file in the filer's root volume.

The default /etc/nsswitch.conf file  Top

If the /etc/nsswitch.conf file does not exist in the filer's root volume, Data ONTAP creates a default nsswitch.conf file when NIS is enabled on your filer. The contents of the default file are as follows:

hosts: files nis dns
passwd: files nis
netgroup: files nis
group: files nis
shadow: files nis

Note
Only the hosts entry in the /etc/nsswitch.conf file pertains to host name resolution. For information about other entries, see the Storage Management Guide.

By default, the host information is searched in the following order:

Changing the search order  Top

To change the order in which Data ONTAP searches for host information, complete the following steps.

Step

Action

1

If an /etc/nsswitch.conf file does not exist in the filer's root volume, create it.

2

Edit the file and enter each line in the following format:

map: service ...

map for the host name resolution service is hosts.

service is one or more of the following: files, dns, nis.

3

Save the file.

Library Table of Contents Index Previous Next Comments