R0106-HP MSR Router Series Layer 2 - WAN Command Reference(V7)
15
Default
A device does not allocate DNS server IP addresses to its peer if the peer does not request them.
Views
Interface view
Predefined user roles
network-admin
Parameters
primary-dns-address: Primary DNS server IP address to be set.
secondary-dns-address: Secondary DNS server IP address to be set.
Usage guidelines
When connected through PPP, a device can assign DNS server IP addresses to its peer during PPP
negotiation (if the peer requests).
If a host is connected to the device through PPP, you can execute the winipcfg command or the ipconfig
/all command on the host to check the DNS server IP addresses assigned by the device.
Examples
# Set the primary and secondary DNS server IP addresses to 100.1.1.1 and 100.1.1.2 for the peer on
interface Serial 2/1/0.
<Sysname> system-view
[Sysname] interface serial 2/1/0
[Sysname-Serial2/1/0] ppp ipcp dns 100.1.1.1 100.1.1.2
ppp ipcp dns admit-any
Use ppp ipcp dns admit-any to configure the device to accept the DNS server IP addresses assigned by
the peer even though it does not request the peer for the DNS server IP addresses.
Use undo ppp ipcp dns admit-any to configure the device to deny the DNS server IP addresses assigned
by the peer if it does not request the peer for the DNS server IP addresses.
Syntax
ppp ipcp dns admit-any
undo ppp ipcp dns admit-any
Default
A device does not accept the DNS server IP addresses assigned by the peer if it does not request the peer
for the DNS server IP addresses.
Views
Interface view
Predefined user roles
network-admin
Usage guidelines
You can configure a device to accept the DNS server IP addresses assigned by the peer, through which
domain names can be resolved for the device.