Take the 2-minute tour ×

I have a mobile broadband device that I use to connect to the internet. I wish to use the google dns service, their nameservers being and I add them to /etc/resolv.conf but when I connect with wvdial,

➜  ~  sudo wvdial mts
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
CONNECT 3100000
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sat Sep  1 19:45:18 2012
--> Pid of pppd: 3298
--> Using interface ppp0
--> local  IP address
--> remote IP address
--> primary   DNS address
--> secondary DNS address

This updates my resolv.conf to the new DNS servers. The problem is that my ISP's DNS service is buggy and I wish to use either google dns or opendns. How do I achieve this? I am running chakra linux (2012.08.22 - Claire)

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You should have a /etc/ppp/ip-up.d/0dns-up which will setup DNS records, so remove execution bit and use google dns statically.

chmod -x /etc/ppp/ip-up.d/0dns-up

And modify /etc/resolv.conf to use google dns only (you've done that already)

share|improve this answer
Is their some way that I can verify that my dns has been changed using some website or tool? –  nikhil Sep 1 '12 at 15:08
@nikhil you don't need to, since all programs use glibc function to resolve an address unless it parses DNS packets itself..but if you insist, check output with dig www.google.com –  warl0ck Sep 1 '12 at 15:11
Thanks so much for this. I have learned something new today. –  nikhil Sep 1 '12 at 15:41

Your Answer


