< Home

dns (IKE user view)

Function

The dns command configures the DNS server address allocated to an IKE user.

The undo dns command deletes the DNS server address allocated to an IKE user.

By default, the DNS server address allocated to an IKE user is not configured.

Format

dns ipv4-address1 [ ipv4-address2 ]

undo dns

Parameters

Parameter

Description

Value

ipv4-address1

Specifies the primary DNS server IPv4 address allocated to an IKE user.

The value is in dotted decimal notation.

ipv4-address2

Specifies the secondary DNS server IPv4 address allocated to an IKE user.

The value is in dotted decimal notation.

Views

IKE user view

Default Level

2: Configuration level

Usage Guidelines

In a point-to-multipoint scenario, to simplify the configuration and maintenance of network resources (IP addresses and addresses of DNS servers) of branch gateways, you can deploy the network resources on the headquarters gateway. When a branch gateway initiates IKEv2 negotiation and establishes an IPSec tunnel with the headquarters gateway, the headquarters gateway can push the network resources to the branch gateway through IKEv2. The service-scheme command can be used on an IKE peer to reference a service scheme so that a DNS server address can be pushed to a branch gateway, but different DNS server addresses cannot be provided for branch gateways. In this case, run the dns command to specify the DNS server address to a branch gateway.

Example

# Specify a DNS server address allocated to an IKE user.

<sysname> system-view
[sysname] ike user-table 10
[sysname-ike-user-table-10] user user1
[sysname-ike-user-table-10-user1] dns 10.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >