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.
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. |
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.