Which option is used to configure pppd to use up to two DNS server addresses provided by the remote server?
A. ms-dns
B. nameserver
C. usepeerdns
D. dns
E. None of the above
4 Comments on “Which option is used to configure pppd to use up to two DNS server addresses provided by the remote server?”
joesays:
C
0
0
Michasays:
The answer is C usepeerdns
man ppdd(8)
usepeerdns
Ask the peer for up to 2 DNS server addresses. The addresses
supplied by the peer (if any) are passed to the /etc/ppp/ip-up
script in the environment variables DNS1 and DNS2, and the
environment variable USEPEERDNS will be set to 1. In addi‐
tion, pppd will create an /etc/ppp/resolv.conf file containing
one or two nameserver lines with the address(es) supplied by
the peer.
Please update
0
0
Michasays:
That should read pppd of course
0
0
Ektorassays:
joe and micha are right
If usepeerdns option is used, pppd will create the /etc/ppp/resolv.conf file with obtained DNS addresses while establishing a connection. By default, the /etc/ppp/ip-up.d/00_dns hook script moves this file to /etc/resolv.conf, allowing the system to use these name servers. If this is undesirable (e.g. you are using a local caching DNS), edit the /etc/ppp/ip-up.d/00_dns.sh as you need.
C
0
0
The answer is C usepeerdns
man ppdd(8)
usepeerdns
Ask the peer for up to 2 DNS server addresses. The addresses
supplied by the peer (if any) are passed to the /etc/ppp/ip-up
script in the environment variables DNS1 and DNS2, and the
environment variable USEPEERDNS will be set to 1. In addi‐
tion, pppd will create an /etc/ppp/resolv.conf file containing
one or two nameserver lines with the address(es) supplied by
the peer.
Please update
0
0
That should read pppd of course
0
0
joe and micha are right
If usepeerdns option is used, pppd will create the /etc/ppp/resolv.conf file with obtained DNS addresses while establishing a connection. By default, the /etc/ppp/ip-up.d/00_dns hook script moves this file to /etc/resolv.conf, allowing the system to use these name servers. If this is undesirable (e.g. you are using a local caching DNS), edit the /etc/ppp/ip-up.d/00_dns.sh as you need.
0
0