Want to use free public DNS servers

  • Thread starter Thread starter techtata
  • Start date Start date
  • Replies Replies 3
  • Views Views 9,407
Status
Not open for further replies.

techtata

Regular
Messages
598
Location
NA
ISP
Tata Indicom
Hi,

I am using Fedora Linux to surf the net with Tata Plug 2 Surf USB modem and it has the following nameservers in its /etc/resolv.conf file

202.54.29.5
202.54.10.2

I have used these 2 nameservers for over a year already. Now I do not want to use these two nameservers.

Is it possible? I have manually changed the /etc/resolv.conf file by just adding the following free public DNS servers and deleting the above two. These 2 public DNS servers are listed at the above url only.

156.154.70.1
156.154.71.1

Now when I dial at the terminal window the command called "wvdial" I get the following displayed in the window and I get connected to the net as well. But still the DNS servers seem to be old ones (202.54.29.5 and 202.54.10.2) rather than the new ones (ie 156.154.70.1 and 156.154.71.1) why so? Shoudn't the wvdial command display the new DNS servers? Please help me, thanks.

----------------------------------------------------------------

--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2
ATQ0 V1 E1 S0=0 &C1 &D2
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Thu May 20 14:48:45 2010
--> pid of pppd: 3198
--> Using interface ppp0
--> pppd: e
--> pppd: e
--> pppd: e
--> local IP address xx.xx.xx.xx
--> pppd: e
--> remote IP address 172.29.243.145
--> pppd: e
--> primary DNS address 202.54.29.5
--> pppd: e
--> secondary DNS address 202.54.10.2
--> pppd: e

--------------------------------------------------------------------

---------- Post added at 03:48 PM ---------- Previous post was at 03:15 PM ----------

Hi,

I have read about people using free public DNS servers instead of the one provided by their respective ISPs, it is any way beneficial? Do we get faster speeds with public DNS servers? Any other advantages? Thanks
 
 
Assuming you're not logged in as a user with root privileges:

Code:
sudo gedit /etc/ppp/peers/wvdial
(comment out the usepeerdns line)

Code:
sudo gedit /etc/wvdial.conf
and add

Code:
Auto DNS = off
then

Code:
sudo gedit /etc/resolv.conf
and add

Code:
nameserver xxx.xxx.xxx.xxxnameserver yyy.yyy.yyy.yyy
Basically I think wvdial overwrites your resolv.conf whenever you start it.

If that doesn't work, you could create a shell script to copy over a specific resolv.conf then run wvdial, for example

first, copy your newly modified resolv.conf to resolv.conf.tata

Code:
cp -f resolv.conf resolv.conf.tata
then create a shell script, eg ~/tata

add the lines

Code:
cp -f resolv.conf.tata resolv.confwvdial
then

Code:
chmod 777 ~/tata
and see how it goes.

But seriously, why use wvdial? In later versions of Fedora (I assume you're using 11 or 12), NetworkManager might be a better and easier option. It should be installed by default, otherwise you can install it with yum.
 
Hi,

Thanks for the quick reply. Here is my file /etc/ppp/peers/wvdial

Code:
noauthname wvdialusepeerdns
Here is my file /etc/wvdial.conf

Code:
[Dialer Defaults]Modem = /dev/ttyACM0Baud = 460800Init1 = ATZInit2 = ATQ0 V1 E1 S0=0 &C1 &D2+FCLASS=0ISDN = 0Modem Type = USB ModemPhone = #777Username = internetPassword = internetstupid mode = 1
Here is my file /etc/resolv.conf

Code:
nameserver 156.154.70.1nameserver 156.154.71.1
 
Status
Not open for further replies.

Top