R3303-HP HSR6800 Routers Layer 2 - WAN Command Reference
43
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
Default command level
2: System level
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.
Examples
# Configure interface Serial 2/0/1 of the local device to accept the DNS server IP addresses allocated
by the peer.
<Sysname> system-view
[Sysname] interface serial 2/0/1
[Sysname-Serial2/0/1] ppp ipcp dns admit-any
ppp ipcp dns request
Use ppp ipcp dns request to enable a device to request its peer for the DNS server IP address actively
through a port.
Use undo ppp ipcp dns request to restore the default.
Syntax
ppp ipcp dns request
undo ppp ipcp dns request
Default
A device does not request its peer for the DNS server IP address actively.
Views
Interface view
Default command level
2: System level
Usage guidelines
Suppose a device is connected to another device through PPP, for example, a device is connected to the
operator's access server through a dial-up link. In this case, you can configure a device to request its peer
for the DNS server IP address during IPCP negotiation, so that the device can resolve domain names
through the DNS server specified by the peer.
You can check the DNS server IP addresses of a port by displaying information about the port.