The dns command configures the primary or secondary DNS server in a service scheme.
The undo dns command cancels the configuration of the primary or secondary DNS server in a service scheme.
By default, no primary or secondary DNS server is configured in a service scheme.
Parameter | Description | Value |
---|---|---|
ip-address | Specifies the IP address of a DNS server. |
The value is in dotted decimal notation. |
secondary | Specifies the secondary DNS server. |
- |
If no DNS server is specified when a local address pool, DHCP server, or RADIUS server assigns IP addresses to users, the DNS server configured in the service scheme view is used.
# Set the IP address of the primary DNS server in the service scheme svcscheme1 to 10.10.10.1.
<HUAWEI> system-view [HUAWEI] aaa [HUAWEI-aaa] service-scheme svcscheme1 [HUAWEI-aaa-service-svcscheme1] dns 10.10.10.1
# Set the IP address of the secondary DNS server in the service scheme svcscheme1 to 10.10.20.1.
<HUAWEI> system-view [HUAWEI] aaa [HUAWEI-aaa] service-scheme svcscheme1 [HUAWEI-aaa-service-svcscheme1] dns 10.10.20.1 secondary