Help with /etc/resolv.conf updates - dnsmasq
Carthik Sharma
carthik at gmail.com
Sun Jul 9 15:58:17 UTC 2006
Good Sunday to you all,
I am trying to setup dnsmasq to act as a cache for NS lookups on my
local computer (only one computer) at home.
I have Cable (high-speed) internet where I use dhcp to get leases from my ISP.
When I install dnsmasq, I have to use 127.0.0.1 as the entry for ns
lookups in /etc/resolv.conf. The docs for dnsmasq say that I have to
use a copy of my current resolv.conf for forwarding NS lookups which
are not cached - say a file like /etc/dnsmaq-resolv.conf
So much for the background, now the problem is that since I use the
dhcp3 client, the /etc/resolv.conf file gets autoupdated every now and
then. How do I prevent this from happening?
Also, if I prevent this from happening, how will I get the addresses
for non-cached NS lookups from my ISP to go to the
/etc/dnsmaq-resolv.conf file?
As an aside, how often do the NS ip addresses for an ISP change? If
they don't change, ever, then I will be good by creating a copy of my
current resolv.conf and pointing dnsmasq to the copy for non-cached NS
lookups.
I am sorry if some of the above is unclear - please ask and I will
explain what I mean, if that is the case.
Carthik.
--
Ph.D. Candidate
University of Central Florida
Homepage: http://carthik.net
More information about the ubuntu-users
mailing list