Table of ContentsLibraryView in Frames

Configuring DNS at the command line

You can configure DNS by first creating or editing the /etc/resolv.conf file, then specifying the DNS domain name, and finally enabling DNS through the command-line interface.

Steps

  1. If you are... Then...
    Creating the /etc/resolv.conf file. By using a text editor, create the /etc/resolv.conf file in the root volume. The file can consist of up to three lines, each specifying a name server host in the following format. nameserver ip_address
    where ip_address can be an IPv4 or an IPv6 address.
    Note: If an IPv6 link-local address is specified as a DNS name server, the address must be appended with %interface_name. The appended interface_name is the name of the interface on the storage system that is connected to the same link as the specified DNS name server. For example: nameserver 2001:0db8:85a3:0:0:8a2e:0370:99

    e0a is the interface on the storage system that is connected to the same link as the DNS name server with the IPv6 address 2001:0db8:85a3:0:0:8a2e:0370:99.

    Editing the /etc/resolv.conf file. From a workstation that has access to the root volume of your storage system, edit the /etc/resolv.conf file using a text editor.
  2. Enter the following command to specify the DNS domain name: options dns.domainname domain

    domain is the new domain name, which follows your storage system's host name in the fully qualified domain name.

  3. Enter the following command to enable DNS: options dns.enable {off | on}

    on—Enables DNS

    off—Disables DNS