Product Documentation

Adding a Name Server

Oct 29, 2014

You can create a name server by specifying its IP address or by configuring an existing virtual server as the name server.

While adding name servers, you can provide an IP address or a virtual IP address (VIP). If you add an IP address, the NetScaler load balances requests to the configured name servers in round robin method. If you add a VIP, you can configure any load balancing method.

Example 1, which follows the command synopsis below, adds a local name server. Example 2 specifies the name of a load balancing virtual server of service type DNS.

Note: To verify the configuration, you can also use the sh dns <recordtype> <domain> command. If the queried records are not present in the cache, the resource records are fetched from the configured external name servers.

To add a name server by using the command line interface

At the command prompt, type the following commands to add a name server and verify the configuration:

  • add dns nameServer ((<IP> [-local]) | <dnsVserverName>)
  • show dns nameServer [<IP> | <dnsVserverName>]

Example 1

> add dns nameServer -local 
> show dns nameServer 
1) LOCAL  -  State: UP 

Example 2

> add dns nameServer dnsVirtualNS 
> show dns nameServer dnsVirtualNS 
1)       dnsVirtualNS  -  State: DOWN 

To remove a name server by using the NetScaler command line, at the NetScaler command prompt, type the rm dns nameServer command followed by the IP address of the name server.

To add a name server by using the configuration utility

Navigate to Traffic Management > DNS > Name Servers and create a name server.