dns server

Syntax

In system view:

dns server ip-address

undo dns server [ ip-address ]

In interface view:

dns server ip-address

undo dns server ip-address

View

System view, interface view

Default level

2: System level

Parameters

ip-address: Specifies the IPv4 address of the DNS server.

Description

Use dns server to specify a DNS server.

Use undo dns server to remove DNS servers.

No DNS server is specified by default.

Related commands: display dns server.

Examples

# Specify the DNS server 172.16.1.1 in system view.

<Sysname> system-view
[Sysname] dns server 172.16.1.1