Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.