Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments

Using NIS to maintain host information

Advantage of using NIS  Top

Like DNS, NIS enables you to centrally maintain host information. NIS provides two methods for storage system host-name resolution:

NIS also enables you to maintain user information. For more information, see the Data ONTAP System Administration Guide.

Using NIS slave for name resolution  Top

Host-name resolution using a hosts map can have a performance impact, because each query for the hosts map is sent across the network to the NIS server. To improve performance, you can enable an NIS slave on your storage system.

The NIS slave establishes a contact with an NIS master server and does the following two tasks:

Selection of an NIS master  Top

When the NIS slave is enabled on your storage system, the NIS servers listed with the nis.servers option are contacted to determine the master NIS server. The NIS master can be different from the servers listed with the nis.servers option. If that is the case, the servers listed with the nis.servers option inform the slave about the master server.

Note
Either the NIS server must have an entry in the hosts map for the master or the /etc/hosts file on your storage system must be able to resolve the IP address of the master. Otherwise, the NIS slave on the storage system cannot contact the master.

Guidelines for using the NIS slave  Top

Keep the following guidelines in mind when using the NIS slave on your storage system:

About configuring NIS for host lookups  Top

You can configure your storage system to use one or more NIS servers either during the setup procedure or later using the Data ONTAP command line or FilerView.

If you configure NIS later, you need to do all of the following:

You cannot configure the NIS slave during the setup procedure. To configure the NIS slave after the setup procedure is complete, you need to enable NIS slave by setting the option nis.slave.enable to On. For more information about enabling NIS slave, see Enabling an NIS slave on your storage system.

Data ONTAP interfaces to configure NIS  Top

You can enable NIS and set NIS configuration values in either of these ways:

If you want to use primarily NIS for host-name resolution, specify it ahead of other methods in the hosts map in the /etc/nsswitch.conf file. For information about editing the /etc/nsswitch.conf file, see Changing the host name search order.

Correct host-name resolution depends on the correct configuration of the NIS server. If you experience problems with host-name resolution or data availability, check the NIS server in addition to local networking.

For more information about your storage system's NIS client, see the na_nis(8) man page.

Configuring NIS with FilerView  Top

To set or modify NIS configuration values with FilerView, complete the following steps.

Step

Action

1

In FilerView, click Network in the list on the left.

2

In the list under Network, click Manage DNS and NIS Name Service.

3

If you want to....

Then...

Enable or disable NIS

Select Yes or No in the NIS Enabled field.

Set or modify the NIS domain name

Enter a name in the NIS Domain Name field.

Examples of configuration values are listed in Specifying the NIS domain name.

Specify or modify NIS servers

Enter one or more IP addresses in the NIS Servers fields.

Examples of configuration values are listed in Specifying NIS servers to bind to.

Enabling or disabling NIS using the command-line interface  Top

To enable or disable NIS on your storage system, complete the following step.

Step

Action

1

Enter the following command:

options nis.enable {on|off}

Use On to enable and Off to disable NIS.

Specifying the NIS domain name  Top

To specify the NIS domain name, complete the following step.

Step

Action

1

Enter the following command:

options nis.domainname domain

domain is the NIS domain name to which your storage system belongs; for example, typical NIS domain names might be sales or marketing. The NIS domain name is usually not the same as the DNS domain name.

Specifying NIS servers to bind to  Top

You can specify an ordered list of NIS servers to which you want your storage system to bind. The list should begin with the closest NIS server (closest in network terms) and end with the furthest one.

To specify an ordered list of NIS servers you want your storage system to bind to, complete the following step.

Note
You can specify NIS servers by IP address or host name. If host names are used, make sure each host name, along with its IP address, is listed in the /etc/hosts file of your storage system. Otherwise, the binding with host name will fail.

Step

Action

1

Enter the following command to specify the NIS servers and their order:

options nis.servers ip_address, server_name, *

The asterisk (*) specifies that broadcast is used to bind to NIS servers if the servers in the list are not responding. This is the default. If you do not specify broadcasting (that is, if you do not add the asterisk), and none of the listed servers is responding, NIS services are disrupted until one of the preferred servers responds.

You can specify only IPv4 addresses or server names that resolve to IPv4 addresses using the /etc/hosts file on your storage system.

Attention
Using the NIS broadcast feature can incur security risks.

Example of specifying NIS servers to bind to

The following lists two servers and uses the broadcast default:

options nis.servers 172.15.16.1,nisserver-1,*

Your storage system first tries to bind to 172.15.16.1. If the binding fails, the storage system tries to bind to nisserver-1. If this binding also fails, the storage system binds to any server that responds to the broadcast. While bound to the NIS server that responded to the broadcast, the storage system continues to poll the preferred servers. As soon as one of the preferred servers is found, the storage system binds to the preferred server.

Enabling an NIS slave on your storage system  Top

To enable an NIS slave on your storage system, complete the following step.

Step

Action

1

Enter the following command:

options nis.slave.enable {on|off}

Use on to enable the NIS slave and off to disable it.

Note
If the NIS slave is disabled, your storage system reverts back to the original configuration, in which it contacts an NIS server to resolve host names.

Displaying NIS information  Top

You can display the following types of NIS information:

To display NIS information, complete the following step.

Step

Action

1

Enter the following command:

nis info

For more information about the nis info command and resulting display, see the na_nis(1) man page.

NIS administrative commands  Top

Data ONTAP supports the standard NIS administrative commands listed in the following table. For more information, see each command's man page.

Command

Function

ypcat

Prints an entire NIS map

ypgroup

Displays the NIS group cache entries

ypmatch

Looks up specific entries in an NIS map

ypwhich

Returns the name of the current NIS server

Library Table of Contents Index Previous Page (Alt-p) Next Page (Alt-n) Comments