< Home

Configuring a DNS Category

DNS categories may be user-defined or predefined. You can either create user-defined categories or use predefined categories to filter domain names.

Context

The application scenarios of user-defined categories and predefined categories are as follows:

  • Predefined categories

    A large number of common domain names are already added to predefined categories. You can easily manage the accessible and inaccessible domain name categories.

    Predefined DNS categories are preset in the system and the same as predefined URL categories. Predefined DNS categories cannot be created, deleted, or renamed. However, you can not add user-defined domain names to the predefined DNS categories.

  • User-defined categories

    The predefined categories may not cover new websites. You can create user-defined categories based on special filtering requirements or to enhance predefined DNS categories.

Manually Configuring a User-Defined Category

  1. Access the system view.

    system-view

  2. Create a user-defined DNS category and access its view.

    dns-filter category user-defined name category-name

  3. Specify the description of the user-defined DNS category.

    description description

  4. Add a domain name rule to the user-defined DNS category.

    add host host-text

Manually Loading a Predefined DNS Category Database

If the device does not have a predefined DNS category database or the predefined DNS category database needs to be updated, you can manually load the predefined DNS category database.

A predefined URL category database takes effect for both URL categories and DNS categories. For detailed configurations, see Key Points for Configuring URL Category-based URL Filtering.

Follow-up Procedure

  • In the user-defined DNS category view, rename an existing user-defined DNS category and display the new user-defined DNS category view.

    rename new-name

  • Clone a predefined DNS category.

    dns-filter category user-defined copy old-name [ new-name ]

    If new-name is not specified in the command, the name of the new DNS category is the original category name suffixed by _num. _num indicates the number of times the DNS category is cloned.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >