Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-24-2010, 01:27 PM
|
#1
|
|
Member
Registered: Oct 2004
Location: Michigan
Distribution: Debian Squeeze (2.6.32-5)
Posts: 136
Rep:
|
resolv.conf nameserver ordering/priorities
I know I can put several name servers in resolv.conf.
Thing is, I'm toying around with OpenNIC at the moment, so I have 3 of theirs in the list right now.
I'd like to also be able to use OpenDNS ones, because to some extent the filtering is nice for other people who connect to my router.
That said, the router is setup to use OpenDNS,and I simply have my own box setup to use OpenNIC.
Now, is there a way for me to set my box up to use OpenDNS, and if the query fails (eg: .inc .glue), have it automatically fall over to OpenNIC ones?
|
|
|
|
01-24-2010, 01:40 PM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,823
|
it sounds like you actually want a local bind server to handle forwarding queries. resolv.conf just takes them in order, preferring a local host address if available.
|
|
|
|
01-24-2010, 01:50 PM
|
#3
|
|
Member
Registered: Oct 2004
Location: Michigan
Distribution: Debian Squeeze (2.6.32-5)
Posts: 136
Original Poster
Rep:
|
Any howto's on the subject?
|
|
|
|
01-25-2010, 08:14 AM
|
#4
|
|
Senior Member
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,692
|
Quote:
Originally Posted by jmoschetti45
I know I can put several name servers in resolv.conf.
|
Provided that by 'several' you mean 'two, or fewer', that is completely correct (IIRC). Well, to be technically correct, you can put as many in as you want, it just won't use the ones after the second. Not that you'd necessarily want to do that, given the performance penalty...
Quote:
Thing is, I'm toying around with OpenNIC at the moment, so I have 3 of theirs in the list right now.
I'd like to also be able to use OpenDNS ones, because to some extent the filtering is nice for other people who connect to my router.
|
(Pardon me, but) Weird: you want to configure filtering to block certain sites - that I can understand. And then you want to configure it so that that the filtering sometimes doesn't work. That, I don't understand, but that's OK, too.
Quote:
|
Now, is there a way for me to set my box up to use OpenDNS, and if the query fails (eg: .inc .glue), have it automatically fall over to OpenNIC ones?
|
Well, if you put the OpenDNS one first and then the OpenNIC one, it will try one first and then, if the first server does not give a reply, it will try the other one. But, it will do this for every query, so it will always be slow for every query that does fall over to the second server, having had to wait for the timeout. It is only a stub resolver, after all.
(Err, and obviously, if it did use a third, that would be very slow.)
Quote:
|
Any howto's on the subject?
|
There probably are, but would you mind saying on which subject you wanted this how-to: - the use of a stub resolver
- overview of the advantages and disadvantages of different name caching programs
- how to install and/or configure some particular name server
|
|
|
|
01-25-2010, 09:41 AM
|
#5
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,823
|
Sorry, ignore my comments, BIND doesn't have any way to prefer the order of nameservers. All goes to really suggest something's wonky in the logic of what you want to achieve.
|
|
|
|
01-25-2010, 10:18 AM
|
#6
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,367
|
dnsmasq can be configured to use multiple DNS servers. Log inspection suggests it selects the fastest one at startup and dynamically adjusts once running.
dnsmasq is relatively easy to configure, too, except for some trickery to stop it querying upstream servers for the local domain defined in the hosts file, details here.
|
|
|
|
01-25-2010, 11:27 AM
|
#7
|
|
Member
Registered: Oct 2004
Location: Michigan
Distribution: Debian Squeeze (2.6.32-5)
Posts: 136
Original Poster
Rep:
|
I believe I'm just going to give up on this, it's a lot more technical than I was hoping and not worth the effort.
Point in having OpenDNS was I have the "filter time-wasters" or whatever it is (max filtering, blocks myspace/youtube/porn and such) set up so when friends/family come over and connect to my wireless, they don't waste all my bandwidth. I figured it'd be nice to have that option on my own box, simply because OpenDNS takes out a few odd pages here or there that come up once in a while.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:04 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|