LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Configuring cache server with BIND (https://www.linuxquestions.org/questions/linux-networking-3/configuring-cache-server-with-bind-128008/)

Bobbychat 12-22-2003 03:50 AM

Configuring cache server with BIND
 
Hi all,
I am new to BIND.I have configured it to work.I would like to make it work as a cache server.The details of my named.conf is shown below.What else is to be configured to make it keep the records in the cache

Here is my named.conf:-

options {
directory "/etc";
pid-file "/var/run/named/named.pid";
forward first;
forwarders {
1.1.1.1;(My ISP' PrimaryDNS server)
2.2.2.2;(ISP' Secondary DNS Server)
};
};

zone "." {
type hint;
file "/etc/db.cache";
};

Any help would be very helpful....

Thanks

Bobbychat

chort 12-22-2003 09:55 AM

That's it, actually. named will automatically cache responses it gets (and in the case, pass on any questions to your ISP if it doesn't have the answer cached). Just point your clients to do DNS lookups from your server.

Bobbychat 12-22-2003 10:44 PM

Thanks Chort.

BTW:Where does it keep the cache data?in the etc/db.cache file?


Thx once again....

:)

chort 12-22-2003 11:46 PM

It's not written to disk, that's the great part about it: Always in memory.

Bobbychat 12-26-2003 06:46 AM

Hey Chort!!,
Why doesn't my /var/named folder does not have any files?Its empty.What are the files that should be inside Var/Named folder?

:confused:

chort 12-26-2003 02:50 PM

Nothing. Your named.conf and "hints" file are both in /etc, and you pid file is in /var/run/named. Since you're not authoritative for any zones, there's nothing else to write to disk.

Bobbychat 12-26-2003 10:32 PM

:D :D :D

Thanks Chort.....


All times are GMT -5. The time now is 08:43 PM.