Fortinet white logo
Fortinet white logo

CLI Reference

config system dns

config system dns

Use this command to configure DNS.

Before you begin:
  • You must have read-write permission for system settings.

Syntax

config system dns

set primary <class_ip>

set secondary <class_ip>

end

primary

Specify the IP address for the primary DNS server.

Note: For FortiADC in AWS, the DNS server 169.254.169.253 is automatically assigned. This address cannot be changed when AWS autoscaling is enabled.

secondary

Specify the IP address for the secondary DNS server.

Example

FortiADC-VM # get system dns

primary : 8.8.8.8

secondary : 0.0.0.0

FortiADC-VM # config system dns

FortiADC-VM (dns) # set secondary 8.8.4.4

FortiADC-VM (dns) # end

FortiADC-VM # get system dns

primary : 8.8.8.8

secondary : 8.8.4.4

config system dns

config system dns

Use this command to configure DNS.

Before you begin:
  • You must have read-write permission for system settings.

Syntax

config system dns

set primary <class_ip>

set secondary <class_ip>

end

primary

Specify the IP address for the primary DNS server.

Note: For FortiADC in AWS, the DNS server 169.254.169.253 is automatically assigned. This address cannot be changed when AWS autoscaling is enabled.

secondary

Specify the IP address for the secondary DNS server.

Example

FortiADC-VM # get system dns

primary : 8.8.8.8

secondary : 0.0.0.0

FortiADC-VM # config system dns

FortiADC-VM (dns) # set secondary 8.8.4.4

FortiADC-VM (dns) # end

FortiADC-VM # get system dns

primary : 8.8.8.8

secondary : 8.8.4.4