Jun 23

wvdial and resolv.conf fileDo you use wvdial and want to set custom DNS, but find that even though you put your DNS address in ‘/etc/resolv.conf’, wvdial always uses the ones provided by your ISP and your entries in the file are dynamically overwritten.

So how do make your entries stick and get used. There are two setting which are required to be changed, you require root previlages to do the changes.
[1] The first one is in the file ‘/etc/wvdial.conf’ , in this file if there is an entry for ‘Auto DNS’, change it to below else add the below line:
Auto DNS = 0

[2] In the file ‘/etc/ppp/peers/wvdial’, either comment (#) or remove the following line:
usepeerdns

Next time you connect using wvdial it should be using the servers mentioned in your ‘/etc/resolv.conf’ file.