Fortinet black logo

CLI Reference

dnsfilter domain-filter

Configure DNS domain filters.

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

config dnsfilter domain-filter

Parameter Name Description Type Size
name Name of table. string Maximum length: 63
comment Optional comments. var-string Maximum length: 255

config entries

Parameter Name Description Type Size
domain Domain entries to be filtered. string Maximum length: 511
type DNS domain filter type.
simple: Simple domain string.
regex: Regular expression domain string.
wildcard: Wildcard domain string.
option -
action Action to take for domain filter matches.
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.
option -
status Enable/disable this domain filter.
enable: Enable this domain filter.
disable: Disable this domain filter.
option -

Configure DNS domain filters.

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

config dnsfilter domain-filter

Parameter Name Description Type Size
name Name of table. string Maximum length: 63
comment Optional comments. var-string Maximum length: 255

config entries

Parameter Name Description Type Size
domain Domain entries to be filtered. string Maximum length: 511
type DNS domain filter type.
simple: Simple domain string.
regex: Regular expression domain string.
wildcard: Wildcard domain string.
option -
action Action to take for domain filter matches.
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.
option -
status Enable/disable this domain filter.
enable: Enable this domain filter.
disable: Disable this domain filter.
option -