static int proxy_arp_set[NUM_PPP]; /* Have created proxy arp entry */
static bool usepeerdns; /* Ask peer for DNS addrs */
static bool usepeerwins; /* Ask peer for WINS addrs */
+static bool noresolvconf; /* Do not create resolv.conf */
static int ipcp_is_up; /* have called np_up() */
static int ipcp_is_open; /* haven't called np_finished() */
static bool ask_for_local; /* request our address from peer */
{ "usepeerwins", o_bool, &usepeerwins,
"Ask peer for WINS address(es)", 1 },
+ { "noresolvconf", o_bool, &noresolvconf,
+ "Do not create resolv.conf", 1 },
+
{ "netmask", o_special, (void *)setnetmask,
"set netmask", OPT_PRIO | OPT_A2STRVAL | OPT_STATIC, netmask_str },
{
FILE *f;
+ if (noresolvconf)
+ return;
+
f = fopen(PPP_PATH_RESOLV, "w");
if (f == NULL) {
error("Failed to create %s: %m", PPP_PATH_RESOLV);
environment variables DNS1 and DNS2, and the environment variable
USEPEERDNS will be set to 1. In addition, pppd will create an
/etc/ppp/resolv.conf file containing one or two nameserver lines with
-the address(es) supplied by the peer.
+the address(es) supplied by the peer (unless the \fInoresolvconf\fR
+option is given).
.TP
.B usepeerwins
Ask the peer for up to 2 WINS server addresses. The addresses supplied
order to avoid a race condition that results in the incorrect DNS servers
being assigned.
.TP
+.B noresolvconf
+Do not create the /etc/ppp/resolv.conf file.
+.TP
.B user \fIname
Sets the name used for authenticating the local system to the peer to
\fIname\fR.