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. |
|
 |
10-27-2008, 01:42 PM
|
#1
|
|
Member
Registered: Feb 2006
Distribution: Slackware
Posts: 275
Rep:
|
DNS cache without dnsmasq
I have a rather large home network, which is used by the family. A performance issue appears to be that with everyone's activity, there are lots of DNS hits. The local ISP is slow, but there are some other alternatives like OpenDNS, which may perform faster.
What I would really like to try is to cache dns calls locally. For lots of reasons, all the machines here have static IPs, so using the DNS caching capability of dnsmasq is apparently not an option.
Can anyone point out what options I might have? I'd like to cache a small number of DNS calls, (~1000 to 5000), and have DNS run through my gateway slackware 12.1 box. That box would make outside queries for addresses not in the cache, or for which the cache was getting stale on.
Any pointers? Thanks.
|
|
|
|
10-27-2008, 02:04 PM
|
#2
|
|
Member
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 576
Rep:
|
Quote:
Originally Posted by linuxbird
For lots of reasons, all the machines here have static IPs, so using the DNS caching capability of dnsmasq is apparently not an option.
|
Well, I am not familiar with dnsmasq too much but I can't see what way static IPs flows on the DNS caching capability of dnsmasq.
|
|
|
|
10-27-2008, 03:30 PM
|
#3
|
|
Member
Registered: Feb 2006
Distribution: Slackware
Posts: 275
Original Poster
Rep:
|
Quote:
Originally Posted by dorian33
Well, I am not familiar with dnsmasq too much but I can't see what way static IPs flows on the DNS caching capability of dnsmasq.
|
dnsmasq provides for dns cacheing of dhcp clients. Since my IPs are static, DHCP is not used for any of them, and therefore the dnsmasq dns cacheing capability cannot be used.
If I had dynamic IPs, allocated by dhcp, then the question would be moot, since I could use dnsmasq.
Does anyone have a suggested solution?
|
|
|
|
10-27-2008, 04:08 PM
|
#4
|
|
Member
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 576
Rep:
|
Could you point the part of the dnsmasq manual which states that it serve DNS resolution ONLY for hosts with IPs got from DHCP ?
|
|
|
|
10-27-2008, 04:20 PM
|
#5
|
|
Senior Member
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
|
Quote:
|
dnsmasq provides for dns cacheing of dhcp clients. Since my IPs are static, DHCP is not used for any of them, and therefore the dnsmasq dns cacheing capability cannot be used.
|
This is incorrect - you may give out static IP's through static DHCP and Dnsmasq is set up to do this if you wish. Simply build a table in dnsmasq mapping ip's to mac addresses and then those IP's will always be given out to the same clients.
I had my network setup this way as it eased setting up gateway and nameserver addresses across the network.
This is defined in the DHCP RFC 2131 here and is known as manual allocation. It forms part of the standard.
You may use dnsmasq in your case in fact it's ideally suited and will cut configuration and administration as well as speeding up DNS access.
|
|
|
|
10-27-2008, 04:26 PM
|
#6
|
|
Senior Member
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
|
Quote:
|
Could you point the part of the dnsmasq manual which states that it serve DNS resolution ONLY for hosts with IPs got from DHCP ?
|
It doesn't ! Dnsmasq handles DHCP, DNS forwarding and caching. It's DHCP may be static or even disabled and it's DNS caching may handle all requests should you so desire.
|
|
|
|
10-27-2008, 04:58 PM
|
#7
|
|
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,153
Rep: 
|
Have you considered djbdns?
|
|
|
|
10-27-2008, 05:36 PM
|
#8
|
|
Moderator
Registered: May 2001
Posts: 24,790
|
How about Pdnsd? Low memory footprint, cache surviving reboots, highly configurable.
|
|
|
|
10-29-2008, 08:50 PM
|
#9
|
|
Member
Registered: Feb 2006
Distribution: Slackware
Posts: 275
Original Poster
Rep:
|
Quote:
Originally Posted by bgeddy
It doesn't ! Dnsmasq handles DHCP, DNS forwarding and caching. It's DHCP may be static or even disabled and it's DNS caching may handle all requests should you so desire.
|
You are right! I fired up dnsmasq, and low and behold, it started serving dns. I'm not clear on how much it cached, because the times on repeated dns requests does not drop much. I can investigate further.
Thanks.
|
|
|
|
| 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 10:41 PM.
|
|
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
|
|