Fortinet white logo
Fortinet white logo

CLI Reference

dns

dns

Use these commands to set the DNS server addresses. Several FortiManager functions, including sending alert email, use DNS. In FortiManager 5.2.1 or later, you can configure both IPv4 and IPv6 DNS server addresses.

Syntax

config system dns

set primary <ipv4_address>

set secondary <ipv4_address>

set ip6-primary <ipv6_address>

set ip6-secondary <ipv6_address>

end

Variable

Description

primary <ipv4_address>

Enter the primary DNS server IPv4 address.

secondary <ipv4_address>

Enter the secondary DNS IPv4 server address.

ip6-primary <ipv6_address>

Enter the primary DNS server IPv6 address.

ip6-secondary <ipv6_address>

Enter the secondary DNS IPv6 server address.

Example

This example shows how to set the primary FortiManager DNS server IPv4 address to 172.20.120.99 and the secondary FortiManager DNS server IPv4 address to 192.168.1.199.

config system dns

set primary 172.20.120.99

set secondary 192.168.1.199

end

dns

dns

Use these commands to set the DNS server addresses. Several FortiManager functions, including sending alert email, use DNS. In FortiManager 5.2.1 or later, you can configure both IPv4 and IPv6 DNS server addresses.

Syntax

config system dns

set primary <ipv4_address>

set secondary <ipv4_address>

set ip6-primary <ipv6_address>

set ip6-secondary <ipv6_address>

end

Variable

Description

primary <ipv4_address>

Enter the primary DNS server IPv4 address.

secondary <ipv4_address>

Enter the secondary DNS IPv4 server address.

ip6-primary <ipv6_address>

Enter the primary DNS server IPv6 address.

ip6-secondary <ipv6_address>

Enter the secondary DNS IPv6 server address.

Example

This example shows how to set the primary FortiManager DNS server IPv4 address to 172.20.120.99 and the secondary FortiManager DNS server IPv4 address to 192.168.1.199.

config system dns

set primary 172.20.120.99

set secondary 192.168.1.199

end