< Home

add domain

Function

The add domain command adds members to a domain group.

The undo add domain command deletes members from a domain group.

The undo domain all command deletes all members from a domain group.

Format

add domain domain-name &<1-6>

undo add domain domain-name &<1-6>

undo domain all

Parameters

Parameter Description Value
domain domain-name Specifies a domain member.

The value is a string of 1 to 255 case-sensitive characters. The following characters are not supported: @, \, :, *, ", <, >, |, /, #, =, ', and &. You can configure or delete a maximum of six members at a time.

If the domain name contains an asterisk wildcard character (*), the domain name length ranges from 5 to 255. Only asterisk wildcard characters (*) are supported. A domain name can contain only one asterisk wildcard character (*), and the asterisk (*) must be at the beginning. A domain name supports two to four periods (.) that cannot be consecutive and cannot end with a period. That is, the format must be *.X.X, *.X.X.X, or *.X.X.X.X. In addition, the number of characters between two periods cannot exceed 63.
  • Correct examples:
    • www.test.com
    • *.test.com
    • *.test.test1.com
  • Incorrect examples:
    • www.test.com.
    • test.*.com
    • *..test
    • *.test.com.
all Indicates all domain names in a domain group.

Views

Domain group view

Default Level

2: Configuration level

Usage Guidelines

If a DNS server is configured, and the add domain command is used to add domain names to a domain group, the FW will proactively request domain names and IP addresses from the DNS server and bind them. In addition, the corresponding timer is triggered to send a request for updating IP addresses to update the IP addresses to which domain names correspond.

When domain-name contains the domain name of wildcard *, the FW cannot proactively learn the mappings between domain names and IP addresses from the DNS server.

Example

# Create domain group set1 and add example.com to set1.

<sysname> system-view
[sysname] domain-set name set1
[sysname-domain-set-set1] add domain example.com

# Delete all domain names in domain group set1.

<sysname> system-view
[sysname] domain-set name set1
[sysname-domain-set-set1] undo domain all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >