Configure the NetScaler appliance as a forwarder
-
If you have configured a TCP name server, then the NetScaler appliance sends the DNS request over TCP.
-
If you have configured a UDP name server, then the NetScaler appliance sends the DNS request over UDP.
-
If you have configured a UDP-TCP name server, then the NetScaler appliance sends the DNS request over UDP. However if the truncated bit is set in the DNS response, the appliance sends such DNS requests over TCP.
Add a name server
-
IP address-based name server - An external name server to contact for domain name resolution. If multiple IP address-based name servers are configured on the appliance, and the local parameter is not set on any of them, incoming DNS queries are load balanced across all the name servers, in round robin fashion.
-
Virtual server-based name server - A DNS virtual server configured in the NetScaler. For more fine-grained control on how external DNS name servers are load balanced (for example, you want a load balancing method other than round robin), do the following:
-
Configure a DNS virtual server on the appliance
-
Bind the external name servers as its services
-
Specify the name of the virtual server in this command.
show dns nameServer command.
rm dns nameServer command followed by the IP address of the name server.
show dns nameServer command followed by the IP address of the name server.
Add a name server (when the NetScaler appliance acts as a forwarder) by using the CLI
add dns nameServer ((<IP>) | <dnsVserverName>)
add dns nameServer ((<IP> | <dnsVserverName>) [-type <type>]
add dns nameServer dnsVirtualNS
add dns nameServer 192.0.2.11 -type TCP
add dns nameServer 192.0.2.12 -type UDP_TCP
add dns nameServer 192.0.2.10
show dns nameServer 192.0.2.10
1) 192.0.2.10 - State: UP Protocol: UDP
Done
Add a name server (when the NetScaler appliance acts as a resolver) by using the CLI
local parameter for a recursive resolver. Enable recursion using the set dns parameter command.
add dns nameServer ((<IP> [-local]) | <dnsVserverName>)
show dns nameServer
set dns parameter -recursion ENABLED
show dns parameter
add dns nameServer 10.102.9.19 -local
show dns nameServer
1) 10.102.9.19 LOCAL - State: UP Protocol: UDP
Done
set dns parameter -recursion ENABLED
Done
show dns parameter
DNS parameters:
.
.
.
Recursive Resolution : ENABLED
.
.
.
Done
recursion, must also be set. If no name server is marked as being local, the appliance functions as a stub resolver and load balances the name servers.
Add a name server by using the GUI
Set DNS lookup priority
Set the lookup priority to DNS by using the CLI
- set dns parameter -nameLookupPriority (DNS | WINS)
- show dns parameter
> set dns parameter -nameLookupPriority DNS
Done
> show dns parameter
.
.
.
Name lookup priority : DNS
.
.
.
Done
Set lookup priority to DNS by using the GUI
-
Navigate to Traffic Management > DNS.
-
In the details pane, under Settings, click Change DNS settings.
-
In the Configure DNS Parameters dialog box, under Name Lookup Priority, select DNS or WINS, and then click OK.
-nameLookupPriority to DNS, the NetScaler does not attempt WINS lookup. Therefore, if a DNS virtual server is not configured or is disabled, set the -nameLookupPriority to WINS.
Disable and enable name servers
Enable or disable a name server by using the CLI
- (enable | disable) dns nameServer <IPAddress>
- show dns nameServer <IPAddress>
> disable dns nameServer 10.102.9.19
Done
> show dns nameServer 10.102.9.19
1) 10.102.9.19: LOCAL - State: OUT OF SERVICE
Done
Enable or disable a name server by using the GUI
-
Navigate to Traffic Management > DNS > Name Servers.
-
In the details pane, select the name server that you want to enable or disable.
-
Click Enable or Disable. If a name server is enabled, the Disable option is available. If a name server is disabled, the Enable option is available.