Modifying the DNS configuration for a single grid node

Rather than configure the Domain Name System (DNS) globally for the entire deployment, you can run a script to configure DNS differently for each grid node.

About this task

In general, you should use the Maintenance > DNS Servers option on the Grid Manager to configure DNS servers. Only use the following script if you need to use different DNS servers for different grid nodes.

Steps

  1. From the service laptop, log in to the primary Admin Node or the Archive Node:
    1. Enter the following command: ssh admin@primary_Admin_Node_IP
    2. Enter the password listed in the Passwords.txt file.
    3. Enter the following command to switch to root: su -
    4. Enter the password listed in the Passwords.txt file.
    When you are logged in as root, the prompt changes from $ to #.
  2. Run the DNS setup script: setup_resolv.rb.
    The script responds with the list of supported commands.
    Tool to modify external name servers
    
    available commands:
      add search <domain>
                   add a specified domain to search list
                   e.g.> add search netapp.com
      remove search <domain>
                   remove a specified domain from list
                   e.g.> remove search netapp.com
      add nameserver <ip>
                   add a specified IP address to the name server list
                   e.g.> add nameserver 192.0.2.65
      remove nameserver <ip>
                   remove a specified IP address from list
                   e.g.> remove nameserver 192.0.2.65
      remove nameserver all
                   remove all nameservers from list
      save         write configuration to disk and quit
      abort        quit without saving changes
      help         display this help message
    
    
    Current list of name servers:
        192.0.2.64
    Name servers inherited from global DNS configuration:
        192.0.2.126
        192.0.2.127
    Current list of search entries:
        netapp.com
    
    Enter command [add search <domain>|remove search <domain>|add nameserver <ip>]
                  [remove nameserver <ip>|remove nameserver all|save|abort|help]
  3. Add the IP address of a server that provides domain name service for your network: add nameserver IP_address
  4. Repeat the command to add name servers.
  5. Follow instructions as prompted for other commands.
  6. Save your changes and exit the application: save
  7. Close the command shell on the server: exit
  8. Repeat these steps for each grid node.