Rick <(E-Mail Removed)> wrote:
> On Thu, 01 Jul 2004 21:43:09 -0500, Clifford Kite wrote:
>> There are also distributions that don't use /etc/ppp/ip-up.local, and
>> the body of the script then should be a part of /etc/ppp/ip-up.
> I looked at the thread, and it is was well stated here, I wonder why
> userpeerdns just doesn't write to /etc/resolv.conf? I also found that a
> defaultroute was setup that keeps me from going from modem/ppp back to an
> without a restart, or at least figuring out out how to clear the default
> route. Of course, since this is a laptop, I would probably be restarting
> anyway.
As to why it doesn't write directly to /etc/resolv.conf, a minor reason is
that resolv.conf was conceived in a era when laptops and PPP didn't exist.
Whether it's does that now depends on what the pppd maintainer is willing
to do. I happen to side with him on this issue.
Supplying DNS nameserver IP addresses via PPP IPCP negotiation is a MS
hack, and implementing it in pppd is as far as the maintainer is willing
to go since you can script a solution to change resolv.conf. One could
ask "why doesn't MS implement an equivalent to ip-up and ip-down?" which
can be scripted for other special needs as well? Moreover, if you wanted
resolver options then pppd would also have to provide options for those.
Something seems to be left out of the remark about the PPP default route.
However, the default route should go away when the PPP link is terminated
in a half-way decent manner. Termination with "killall -KILL pppd" is
a brutal last resort not a a half-way decent manner, but "killall -TERM
pppd" should take down the PPP interface, and all the PPP routing should
go away.
--
Clifford Kite Email: "echo
xvgr_yvahk-(E-Mail Removed)|rot13"
PPP-Q&A links, downloads:
http://ckite.no-ip.net/
/* I hear and I forget. I see and I remember. I do and I understand.
--Confucius, 551-479 BC */