Basic DNS Cache Server

Sten Carlsen ccc2716 at vip.cybercity.dk
Fri Aug 4 15:01:09 UTC 2006


As a part of dhcp there is a script doing various tasks, one of them
being updating of resolv.conf. There is also a hook for user defined
actions instead of this update script. Replace that function with an
empty function and it will leave your resolv.conf alone. With a little
hack the same can be used for NTP.

/etc/dhclient-enter-hooks:

#  /etc/dhclient-enter-hooks
#  This file should stop some of the damage done by dhclient.
function make_resolv_conf() { return; }
function make_ntp_conf() { return; }


This is called from /sbin/dhclient-script (NTP requires another hack)

There is also a hook for dhclient-exit-hooks


Robert Haas wrote:
> On Fedora, two things that you will want to do are:
> 1. Install the "caching-nameserver" package (ie: "yum install 
> caching-nameserver").
>
> 2. If you want to use the caching nameserver on your local machine, remove 
> any existing nameservers from /etc/resolv.conf and add a line that reads:
>
> nameserver 127.0.0.1
>
> Also note that if you're using DHCP for your IP address, this won't work, 
> because dhcpcd will clobber your /etc/resolv.conf file every time it 
> starts up.  I haven't been able to figure out an easy way around this 
> problem.
>
> ...Robert
>
> bind-users-bounce at isc.org wrote on 08/02/2006 05:15:40 AM:
>
>   
>> Yes, I know this is probably a very stupid question, but trust me that
>> when I say this that I've been through every possible documentation
>> possible and it still eludes me as to how to set it up properly so that
>> it works.
>>
>> I need a step by step walk-through on how to set up at least a DNS
>> Cache Server.
>>
>> Please do no point me to anymore online documents as I've probably read
>> them hundreds of times.
>>
>> Yes, I'm asking to be hand-held through the a setup.
>>
>> I'm running Red Hat Fedora Core 5.
>>
>> So, if anyone truly wants to help me set one up, I would be greatly
>> appreciative.
>>
>> SwtDivaLove
>>
>>
>>     
>
>
>
>   

-- 
Best regards

Sten Carlsen

No improvements come from shouting:

       "MALE BOVINE MANURE!!!" 



More information about the bind-users mailing list