Am Sonntag, 17. August 2003 00:42 schrieb Olivier Blin:
> > No he shouldn't. drakconnect should put it in /etc/resolv.conf, but I
> > must admit that I don't see a case where it wouldn't be usefull
>
> Sorry, but I don't want to use drakconnect, it uses kppp ...
> I want to use wvdial and I don't understand why there should be a line
> "# ppp temp entry" in /etc/resolv.conf

net_monitor uses kppp for modem. 

> > # for dynamic DNS support with gnome-ppp and kppp and draknet
> > if grep -i '#.*ppp temp entry' /etc/resolv.conf >& /dev/null ; then
> > ----
> > If there is a line containing # ppp temp entry
>
> Ok, but why to do this ?
> When should this happen ?
> kppp writes /etc/resolv.conf after /etc/ppp/ip-up is run and I guess it
> deletes its entries before /etc/ppp/ip-down is run.
> I don't know any other soft that writes "# ppp temp entry" entries.

Yep. I just wanted to say that you are not right that it doesn't work 
currently. After digging trough the script I agree that it is solved 
suboptimal. If , when the option usepeerdns is set, USEPEERDNS is set, that 
should be used to prove if the DNS should be written to /etc/resolv.conf. The 
current way breaks config by hand. 

> > ----
> >     PPP_TEMP_ENTRY=`grep '#.*ppp temp entry' /etc/resolv.conf | \
> >        tail -1 | sed 's/.*ppp temp entry/# ppp temp entry/' `
> > ----
> > PPP_TEMP_ENTRY="# ppp temp entry", written in a style that it could
> > win the most useless use of sed award.
>
> agree :)
>
> Thanks for your help.




Reply via email to