Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Apr 2007 14:48:25 +0800
From:      "Richard Simmonds" <yunikan@gmail.com>
To:        <freebsd-questions@freebsd.org>
Subject:   PPP and resolv.conf
Message-ID:  <!&!AAAAAAAAAAAYAAAAAAAAAPOytc9vInVGkl54LcL/nGDCgAAAEAAAABUi1xQhdENMg1AFizNVJKYBAAAAAA==@gmail.com>
In-Reply-To: <000d01c780b2$1303f930$0105a8c0@northamerica.corp.microsoft.com>
References:  <000d01c780b2$1303f930$0105a8c0@northamerica.corp.microsoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
 
>How can I stop ppp from modifying my /etc/resolv.conf?
>Everytime I establish a pppoe session, my resolv.conf file gets
reconfigured to my ISPs DNS Servers.

It's dhclient, not ppp that's modding the file. Adding this to your
dhclient.conf file will fix the problem

interface dc0 {
prepend domain-name-servers 192.168.0.10;
request subnet-mask, broadcast-address, routers, domain-name-servers;
}

you will need to change the interface name and provide the actual dns server
address to match your configuration




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?!&!AAAAAAAAAAAYAAAAAAAAAPOytc9vInVGkl54LcL/nGDCgAAAEAAAABUi1xQhdENMg1AFizNVJKYBAAAAAA==>