Table of ContentsView in Frames

Configuring DNS from the command-line interface

You can configure your storage system to use one or more DNS servers for host-name resolution. 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. Depending on whether you want to create or edit the /etc/resolv.conf file, perform the following step:
    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

    ip_address is the IP address of the DNS name server. The 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 the host name of your storage system in the fully qualified domain name.
  3. Enter the following command to enable DNS: options dns.enable {on|off}
    on—Enables DNS
    off—Disables DNS