RE: PPP and resolv.conf

2007-04-18 Thread Richard Simmonds
 

-Original Message-
From: RW [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 18, 2007 1:11 AM
To: freebsd-questions@freebsd.org
Cc: [EMAIL PROTECTED]
Subject: Re: PPP and resolv.conf

On Tue, 17 Apr 2007 14:48:25 +0800
Richard Simmonds [EMAIL PROTECTED] wrote:

  
 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.

This is unlikely. PPP normally provides the dns server addresses itself, in
which case the suggestion to remove enable dns from ppp.conf is correct.

Well, as always, YMMV. 

If the connection is providing a dynamic address via dhcp, as my ADSL
provider is, it appears to be dhclient that's updating resolv.conf so the
setup as stated works for me. I have 'enable dns' in my ppp.conf file as
well but my provider doesn't seem to be able to offer a dns server address
correctly, which is why I run one locally on the network. I suspect it is
probably a setup error on my part but I have neither the time or the
inclination to tinker with it any more than I have to.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PPP and resolv.conf

2007-04-18 Thread Lowell Gilbert
Richard Simmonds [EMAIL PROTECTED] writes:

  

 -Original Message-
 From: RW [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 18, 2007 1:11 AM
 To: freebsd-questions@freebsd.org
 Cc: [EMAIL PROTECTED]
 Subject: Re: PPP and resolv.conf

 On Tue, 17 Apr 2007 14:48:25 +0800
 Richard Simmonds [EMAIL PROTECTED] wrote:

  
 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.

This is unlikely. PPP normally provides the dns server addresses itself, in
 which case the suggestion to remove enable dns from ppp.conf is correct.

 Well, as always, YMMV. 

 If the connection is providing a dynamic address via dhcp, as my ADSL
 provider is, it appears to be dhclient that's updating resolv.conf so the
 setup as stated works for me. I have 'enable dns' in my ppp.conf file as
 well but my provider doesn't seem to be able to offer a dns server address
 correctly, which is why I run one locally on the network. I suspect it is
 probably a setup error on my part but I have neither the time or the
 inclination to tinker with it any more than I have to.

If DHCP is setting it, then use the prepend or supersede keywords
on domain-name-servers in your dhclient.conf(5).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PPP and resolv.conf

2007-04-17 Thread Daniel Marsh

On 4/17/07, Ansar Mohammed [EMAIL PROTECTED] wrote:


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.



You could make resolv.conf to what you want it to be and then do: chflags
schg /etc/resolv.conf

That will stop anything from modifying it, if you're in securelevel 1 or
more you can't take schg off, you need to reboot into securelevel 0.

Other than that, check the ppp man page for an option...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PPP and resolv.conf

2007-04-17 Thread Ivan Carey

Daniel Marsh wrote:

On 4/17/07, Ansar Mohammed [EMAIL PROTECTED] wrote:


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.



You could make resolv.conf to what you want it to be and then do: chflags
schg /etc/resolv.conf

That will stop anything from modifying it, if you're in securelevel 1 or
more you can't take schg off, you need to reboot into securelevel 0.

Other than that, check the ppp man page for an option...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]


.

do you have enable dns in your ppp.conf file? I had the same thing and 
commented the enable dns to resolve


Ivan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: PPP and resolv.conf

2007-04-17 Thread RW
On Tue, 17 Apr 2007 14:48:25 +0800
Richard Simmonds [EMAIL PROTECTED] wrote:

  
 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.

This is unlikely. PPP normally provides the dns server addresses
itself, in which case the suggestion to remove enable dns from
ppp.conf is correct.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]