set ip dns server

Use this command to configure the IP address for the DNS server.

Syntax

set ip dns server ip-address server

Parameters

ip-address Specifies the IPv4 or IPv6 address for the DNS server.
server Specifies the server designation:
  • primary - Primary DNS server address
  • secondary - Secondary DNS server address
  • tertiary - Tertiary DNS server address
  • quaternary - Quaternary DNS server address

Defaults

None.

Mode

All command modes.

Examples

This example sets the IP address for this systems primary domain server to 20.20.0.1:

System(rw)->set ip dns server 20.20.0.1 primary
System(rw)->

This example sets the IP address for this systems primary domain server to 2001:11ac:dcaa::10:

System(rw)->set ip dns server 2001:11ac:dcaa::10 primary
System(rw)->