< Home

rule copy (DNS transparent proxy policy view)

Function

The rule copy command allows you to copy an existing DNS transparent proxy policy rule to create a new one.

Format

rule copy rule-name new-rule-name

Parameters

Parameter Description Value
rule-name

Specifies the name of a DNS transparent proxy policy rule to be copied.

The value must be the name of an existing DNS transparent proxy policy rule.

new-rule-name

Specifies the name of a DNS transparent proxy policy rule to be created.

The value is a case-sensitive string. If the name does not contain any spaces, the value contains 1 to 32 characters. If the name contains spaces, the value contains 3 to 34 characters, and you must enclose the name with double quotation marks (""), for example, "user for test". The name cannot contain any question marks (?), or quotation marks (").

Views

Transparent DNS proxy policy rule view

Default Level

2: Configuration level

Usage Guidelines

You can clone a DNS transparent proxy policy rule and modify it for a new one.

Example

# Copy existing DNS transparent proxy policy rule abc to create DNS transparent proxy policy rule def.

<sysname> system-view
[sysname] dns-transparent-policy
[sysname-policy-dns] rule copy abc def
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >