< Home

dns (service scheme view)

Function

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.

Format

dns ip-address [ secondary ]

undo dns [ ip-address ]

Parameters

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.

-

Views

Service scheme view

Default Level

3: Management level

Usage Guidelines

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.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >