Fortinet white logo
Fortinet white logo

CLI Reference

config system vdom-dns

config system vdom-dns

Configure DNS servers for a non-management VDOM.

config system vdom-dns
    Description: Configure DNS servers for a non-management VDOM.
    set vdom-dns [enable|disable]
    set primary {ipv4-address}
    set secondary {ipv4-address}
    set ip6-primary {ipv6-address}
    set ip6-secondary {ipv6-address}
    set source-ip {ipv4-address}
    set server-select-method [least-rtt|failover]
    set alt-primary {ipv4-address}
    set alt-secondary {ipv4-address}
end

config system vdom-dns

Parameter

Description

Type

Size

vdom-dns

Enable/disable configuring DNS servers for the current VDOM.

option

-

Option

Description

enable

Enable configuring DNS servers for the current VDOM.

disable

Disable configuring DNS servers for the current VDOM.

primary

Primary DNS server IP address for the VDOM.

ipv4-address

Not Specified

secondary

Secondary DNS server IP address for the VDOM.

ipv4-address

Not Specified

ip6-primary

Primary IPv6 DNS server IP address for the VDOM.

ipv6-address

Not Specified

ip6-secondary

Secondary IPv6 DNS server IP address for the VDOM.

ipv6-address

Not Specified

source-ip

Source IP for communications with the DNS server.

ipv4-address

Not Specified

server-select-method

Specify how configured servers are prioritized.

option

-

Option

Description

least-rtt

Select servers based on least round trip time.

failover

Select servers based on the order they are configured.

alt-primary

Alternate primary DNS server. (This is not used as a failover DNS server.)

ipv4-address

Not Specified

alt-secondary

Alternate secondary DNS server. (This is not used as a failover DNS server.)

ipv4-address

Not Specified

config system vdom-dns

config system vdom-dns

Configure DNS servers for a non-management VDOM.

config system vdom-dns
    Description: Configure DNS servers for a non-management VDOM.
    set vdom-dns [enable|disable]
    set primary {ipv4-address}
    set secondary {ipv4-address}
    set ip6-primary {ipv6-address}
    set ip6-secondary {ipv6-address}
    set source-ip {ipv4-address}
    set server-select-method [least-rtt|failover]
    set alt-primary {ipv4-address}
    set alt-secondary {ipv4-address}
end

config system vdom-dns

Parameter

Description

Type

Size

vdom-dns

Enable/disable configuring DNS servers for the current VDOM.

option

-

Option

Description

enable

Enable configuring DNS servers for the current VDOM.

disable

Disable configuring DNS servers for the current VDOM.

primary

Primary DNS server IP address for the VDOM.

ipv4-address

Not Specified

secondary

Secondary DNS server IP address for the VDOM.

ipv4-address

Not Specified

ip6-primary

Primary IPv6 DNS server IP address for the VDOM.

ipv6-address

Not Specified

ip6-secondary

Secondary IPv6 DNS server IP address for the VDOM.

ipv6-address

Not Specified

source-ip

Source IP for communications with the DNS server.

ipv4-address

Not Specified

server-select-method

Specify how configured servers are prioritized.

option

-

Option

Description

least-rtt

Select servers based on least round trip time.

failover

Select servers based on the order they are configured.

alt-primary

Alternate primary DNS server. (This is not used as a failover DNS server.)

ipv4-address

Not Specified

alt-secondary

Alternate secondary DNS server. (This is not used as a failover DNS server.)

ipv4-address

Not Specified