From: Paul Mackerras Date: Wed, 23 Jan 2013 11:59:45 +0000 (+1100) Subject: pppd: Clarify circumstances where DNS1/DNS2 environment variables are set X-Git-Tag: ppp-2.4.7~34 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=cf2f5c9538b9400ade23446a194729b0a4113b3a pppd: Clarify circumstances where DNS1/DNS2 environment variables are set Make it clear that the DNS1 and DNS2 environment variables being set for scripts doesn't depend on whether the usepeerdns option was given, only on whether the peer provided DNS server addresses. Reported-by: William McCall Signed-off-by: Paul Mackerras --- diff --git a/pppd/pppd.8 b/pppd/pppd.8 index 7ad24c5..6fc6331 100644 --- a/pppd/pppd.8 +++ b/pppd/pppd.8 @@ -1633,11 +1633,13 @@ The logical name of the link, set with the \fIlinkname\fR option. .TP .B DNS1 If the peer supplies DNS server addresses, this variable is set to the -first DNS server address supplied. +first DNS server address supplied (whether or not the usepeerdns +option was given). .TP .B DNS2 If the peer supplies DNS server addresses, this variable is set to the -second DNS server address supplied. +second DNS server address supplied (whether or not the usepeerdns +option was given). .P Pppd invokes the following scripts, if they exist. It is not an error if they don't exist.