[Ilugc] automatically updating resolv.conf

  • From: steve@xxxxxxxxxxxx (steve)
  • Date: Sun Feb 15 23:45:28 2009

Hi Satish,
Satish Eerpini wrote:

Hi Steve,

does adding "usepeerdns" allow for the updation of resolv.conf
automatically or does it just direct the network to use the dns
servers ?
AFAIK, adding it results in updation of resolv.conf. I checked the code of 
'/etc/sysconfig/network-scripts/ifup-ppp' too. However, since i do not use 
wvdial/ppp to connect, i can't confirm that this actually does occur.

..... I have been using wvdial since Fedora 6( long before
NM was stable), .. some habits are not easy to lose... :-) ..

...completely understand that. I use windowmaker and still prefer running the 
mount command by hand :)

I have removed the resolv.conf file and tried reconnecting with
wvdial, but the file is not updated ( or rather created)
automatically, and yeah I did add the "ussepeerdns" option to
/etc/ppp/options .

Two things: firstly, i hope you haven't made the same typo that you made here 
and secondly, what happens if you have the file created ?

btw, with a quick google, i see another file that might be relevant -- 
/etc/ppp/peers/wvdial
does that have usepeerdns ??

basically, the idea is that you have to somehow pass variable PEERDNS to the 
/etc/sysconfig/network-settings/ifup-ppp script, which actually launches the 
pppd.

A quick check would be to peep in the /var/log/messages file to check what 
parameters get passed to pppd.

cheers,
- steve

-- 
Linux Centric Marketplace: http://www.tuxcompatible.com

Other related posts: