Fortinet black logo

CLI Reference

dns

dns

Use these commands to set the DNS server addresses. Several FortiAnalyzer functions, including sending alert email, use DNS. In FortiAnalyzer 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 FortiAnalyzer DNS server IPv4 address to 172.20.120.99 and the secondary FortiAnalyzer 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

Use these commands to set the DNS server addresses. Several FortiAnalyzer functions, including sending alert email, use DNS. In FortiAnalyzer 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 FortiAnalyzer DNS server IPv4 address to 172.20.120.99 and the secondary FortiAnalyzer 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