LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-03-2011, 06:28 AM   #1
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 107Reputation: 107
changing DNS server


I want to switch over to opendns. I registered my account with them but their Linux instructions are limited to Suse and Ubuntu. Not wanting to risk my connectivity, I thought I'd turn to LQ.

And also, one more question. I use my rooted Android phone running wirelesstether to connnect to the internet on my laptop. Since all data is essentially being routed through the phone, do I need to change the dns server on the phone? Or is it only the one in use on my laptop that matters?
 
Old 10-03-2011, 07:37 AM   #2
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
To change the DNS edit the file /etc/resolv.conf. The file should look like:
Code:
nameserver nnn.nnn.nnn.nnn
nameserver nnn.nnn.nnn.nn
Replace nnn.nnn.nnn.nnn for the OpenDNS nameservers. You can just comment you actual configuration putting a # and the beginning of the line so you can easily go back.

If your phone is acting like a router you only need to change the DNS on your laptop.
 
1 members found this post helpful.
Old 10-03-2011, 02:36 PM   #3
specialized
Member
 
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 228

Rep: Reputation: 37
remember the nolook resolv.conf in dhcpcd.conf
 
Old 10-04-2011, 12:26 PM   #4
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Even better : Slackware ships with Bind that's preconfigured as a caching nameserver. Here's what you can try.

Edit /etc/named.conf and add the primary and secondary nameservers you want to use:

Code:
options {
  directory "/var/named";
  /*
   * If there is a firewall between you and nameservers you want
   * to talk to, you might need to uncomment the query-source
   * directive below.  Previous versions of BIND always asked
   * questions using port 53, but BIND 8.1 uses an unprivileged
   * port by default.
   */
  // query-source address * port 53;
  forwarders {
  62.4.16.70;
  62.4.17.69;
  };
};
Activate and start Bind:

Code:
# chmod 0755 /etc/rc.d/rc.bind
# /etc/rc.d/rc.bind start
Now edit /etc/resolv.conf to use your local caching nameserver:

Code:
nameserver 127.0.0.1
To see how well this works, try 'dig' on any website, for example:

Code:
$ dig microlinux.fr
This will give you the lookup time for your query. Say, 60 ms.

Now repeat the query, and you'll see it went down to 1 ms.

Have fun!
 
1 members found this post helpful.
Old 10-04-2011, 02:23 PM   #5
specialized
Member
 
Registered: Sep 2005
Location: Mar del Plata, Arg
Distribution: Always Slackware
Posts: 228

Rep: Reputation: 37
i thought that bind works only in a lan only , not wan or man
 
Old 10-04-2011, 04:36 PM   #6
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Original Poster
Rep: Reputation: 107Reputation: 107
Couldn't get it to work, but I downloaded the Set DNS app on my phone and used it to point to openDNS, and it works that way. So problem solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] DNS: changing from one server to another Dark_Helmet Linux - Server 2 12-14-2010 06:07 PM
how to configure another dns server to combine use with primary current dns server. hocheetiong Linux - Newbie 1 05-29-2008 06:57 PM
LXer: Find out DNS Server Version With DNS Server Fingerprinting Tool LXer Syndicated Linux News 0 12-21-2007 05:30 PM
LXer: Find out DNS Server Version With DNS Server Fingeprinting Tool LXer Syndicated Linux News 0 12-21-2007 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration