The category action command specifies the action for a DNS category.
The undo category action command restores the default action for a DNS category, which is allow.
category { pre-defined [ category-id category-id | subcategory-id subcategory-id ] | user-defined [ name category-name ] } action { allow | alert | block }
undo category { pre-defined [ category-id category-id | subcategory-id subcategory-id ] | user-defined [ name category-name ] } action
| Parameter | Description | Value |
|---|---|---|
| category-id | Specifies the ID of a predefined DNS category. | The value is an integer ranging from 1 to 100. |
| subcategory-id | Specifies the ID of a predefined DNS subcategory. | The value is an integer ranging from 101 to 60000. |
| category-name | Specifies the name of a user-defined DNS category. | The DNS category has been configured. |
| allow | Sets the category action to allow. | - |
| block | Sets the category action to block and records DNS filtering logs. | - |
| alert | Sets the category action to alert and records DNS filtering logs. | - |
You can run the display profile type dns-filter command to display the subcategory-id of a specified predefined DNS category.