< Home

default action (DNS filtering profile view)

Function

The default action command sets the default action for a DNS filtering profile.

The undo default action command sets the default action for a DNS filtering profile to allow.

Format

default action { allow | block | alert }

undo default action

Parameters

Parameter Description Value
allow Sets the default action to allow. -
block Sets the default action to block. -
alert Sets the default action to alert. -

Views

DNS filtering profile view

Default Level

2: Configuration level

Usage Guidelines

The default action for a DNS filtering profile is allow.

Example

# Set the default action for DNS filtering profile profile_development to block in the DNS filtering profile view.

<sysname> system-view
[sysname] profile type dns-filter name profile_development
[sysname-profile-dns-filter-profile_development] default action block
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >