Fortinet black logo

CLI Reference

config dnsfilter domain-filter

config dnsfilter domain-filter

Configure DNS domain filters.

config dnsfilter domain-filter
    Description: Configure DNS domain filters.
    edit <id>
        set comment {var-string}
        config entries
            Description: DNS domain filter entries.
            edit <id>
                set id {integer}
                set domain {string}
                set type [simple|regex|...]
                set action [block|allow|...]
                set status [enable|disable]
            next
        end
        set id {integer}
        set name {string}
    next
end

config dnsfilter domain-filter

Parameter

Description

Type

Size

Default

comment

Optional comments.

var-string

Not Specified

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

name

Name of table.

string

Not Specified

config entries

Parameter

Description

Type

Size

Default

id

Id.

integer

Minimum value: 0 Maximum value: 4294967295

0

domain

Domain entries to be filtered.

string

Not Specified

type

DNS domain filter type.

option

-

simple

Option

Description

simple

Simple domain string.

regex

Regular expression domain string.

wildcard

Wildcard domain string.

action

Action to take for domain filter matches.

option

-

block

Option

Description

block

Block DNS requests matching the domain filter.

allow

Allow DNS requests matching the domain filter without logging.

monitor

Allow DNS requests matching the domain filter with logging.

status

Enable/disable this domain filter.

option

-

enable

Option

Description

enable

Enable this domain filter.

disable

Disable this domain filter.

config dnsfilter domain-filter

Configure DNS domain filters.

config dnsfilter domain-filter
    Description: Configure DNS domain filters.
    edit <id>
        set comment {var-string}
        config entries
            Description: DNS domain filter entries.
            edit <id>
                set id {integer}
                set domain {string}
                set type [simple|regex|...]
                set action [block|allow|...]
                set status [enable|disable]
            next
        end
        set id {integer}
        set name {string}
    next
end

config dnsfilter domain-filter

Parameter

Description

Type

Size

Default

comment

Optional comments.

var-string

Not Specified

id

ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

name

Name of table.

string

Not Specified

config entries

Parameter

Description

Type

Size

Default

id

Id.

integer

Minimum value: 0 Maximum value: 4294967295

0

domain

Domain entries to be filtered.

string

Not Specified

type

DNS domain filter type.

option

-

simple

Option

Description

simple

Simple domain string.

regex

Regular expression domain string.

wildcard

Wildcard domain string.

action

Action to take for domain filter matches.

option

-

block

Option

Description

block

Block DNS requests matching the domain filter.

allow

Allow DNS requests matching the domain filter without logging.

monitor

Allow DNS requests matching the domain filter with logging.

status

Enable/disable this domain filter.

option

-

enable

Option

Description

enable

Enable this domain filter.

disable

Disable this domain filter.