Note: This tip is currently helpful if you switch between using dial-up and wireless, otherwise, you should not have to do the following tip to get nameservers filled in resolv.conf. This tip may change as KDE and pisilinux.
If there is the odd and rare folk that would like to get KPPP and wvdial to automatically add the dns nameservers to /etc/resolv.conf then try this:
Start krunner, Alt + F2 and enter
kdesu kwrite /etc/ppp/otions
You will have this file open as root after you enter your password.
Lock is the singular entry and type usepeerdns so it looks like this
Next create a symlink to a file. To do this, I open dolphin as root in krunner (Alt + F2)
and enter root password. Navigate to /etc/ppp directory. While in ppp directory, right click and in context menu, select Create New>Basic link to file or directory, which opens, Create Symlink window.
Type file name resolv.conf and to enter path of file click on Open file dialog icon and go to /var/run/ppp/resolv.conf
Select it, symlink will be created in /etc/ppp directory. Close dolphin.
Now when you use KPPP or wvdial, your ISP’s nameservers (usually two) will be added automatically to /etc/resolv.conf and /var/run/ppp/resolv.conf and /run/ppp/resolv.conf allowing you to surf using browser or reach repositories doing package upgrades/installs.
This seems to work, for the file /etc/ppp/ip-up does following:
if [ "$USEPEERDNS" ]; then
# add the server supplied DNS entries to /etc/resolv.conf
# (taken from debian's 0000usepeerdns)
# follow any symlink to find the real file
REALRESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)
if [ "$REALRESOLVCONF" != "/etc/ppp/resolv.conf" ]; then
# merge the new nameservers with the other options from the old configuration
grep '^nameserver[[:space:]]' $REALRESOLVCONF
} > $REALRESOLVCONF.tmp
This did not work with just the addition of „usepeerdns“ in options file. I had to create the symlink, /etc/ppp/resolv.conf to get it to work which is traditionally where pppd looks first for nameserver file.