Fortinet white logo
Fortinet white logo

CLI Reference

config dns-database

config dns-database

Description: Configure DNS databases.

config dns-database

edit <name>

set status [enable | disable]

set *domain {string}

set type [primary]

set view [shadow | public]

set primary-name {string}

set contact {string}

set ttl [1 – 2147483647]

set authoritative [enable | disable]

set forwarder {ipv4-address}, {ipv4-address}, …

set source-ip {ipv4-address}

config dns-entry {{{ see next for more info }}}

unset

Parameter Description Type Size Default
name Name of the DNS database. string - none
status Status of the DNS zone. option - enable
Option Description
enable Enable the DNS zone.
disable Disable the DNS zone.
domain Domain zone name. string - none
type Zone type. option - primary
view Zone view to serve internal or public DNS clients. option - shadow

Option Description
shadow Shadow the DNS zone to serve internal clients.
public Public DNS zone to serve public clients.
primary-name Domain name of the default DNS server for the zone. string - none

contact

Email address of the administrator of the zone. It could be a simple username or full email address.

string

-

host

ttl

Default time-to-live value (in seconds) for the entries of the DNS zone.

integer

1 - 2147483647

86400

authoritative

Status of the authoritative zone.

option

-

disable

Option Description
enable Enable authoritative zone.
disable Disable authoritative zone.

forwarder

The list of DNS zone forwarder IP addresses, separate by white space.

IPv4 address

-

none

source-ip

Source IP for forwarding to the DNS server.

IPv4 address

-

none

config dns-database

config dns-database

Description: Configure DNS databases.

config dns-database

edit <name>

set status [enable | disable]

set *domain {string}

set type [primary]

set view [shadow | public]

set primary-name {string}

set contact {string}

set ttl [1 – 2147483647]

set authoritative [enable | disable]

set forwarder {ipv4-address}, {ipv4-address}, …

set source-ip {ipv4-address}

config dns-entry {{{ see next for more info }}}

unset

Parameter Description Type Size Default
name Name of the DNS database. string - none
status Status of the DNS zone. option - enable
Option Description
enable Enable the DNS zone.
disable Disable the DNS zone.
domain Domain zone name. string - none
type Zone type. option - primary
view Zone view to serve internal or public DNS clients. option - shadow

Option Description
shadow Shadow the DNS zone to serve internal clients.
public Public DNS zone to serve public clients.
primary-name Domain name of the default DNS server for the zone. string - none

contact

Email address of the administrator of the zone. It could be a simple username or full email address.

string

-

host

ttl

Default time-to-live value (in seconds) for the entries of the DNS zone.

integer

1 - 2147483647

86400

authoritative

Status of the authoritative zone.

option

-

disable

Option Description
enable Enable authoritative zone.
disable Disable authoritative zone.

forwarder

The list of DNS zone forwarder IP addresses, separate by white space.

IPv4 address

-

none

source-ip

Source IP for forwarding to the DNS server.

IPv4 address

-

none