]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: Clarify circumstances where DNS1/DNS2 environment variables are set
authorPaul Mackerras <paulus@samba.org>
Wed, 23 Jan 2013 11:59:45 +0000 (22:59 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 23 Jan 2013 11:59:45 +0000 (22:59 +1100)
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 <paulus@samba.org>
pppd/pppd.8

index 7ad24c51f3a42678697ec8a66723bd6a29e49e92..6fc633157e031336d913ec71487b2cea894cf7f2 100644 (file)
@@ -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.