LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 12-22-2003, 04:50 AM   #1
Bobbychat
LQ Newbie
 
Registered: Oct 2003
Location: India
Distribution: Redhat 8
Posts: 8

Rep: Reputation: 0
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
 
Old 12-22-2003, 10:55 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
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.
 
Old 12-22-2003, 11:44 PM   #3
Bobbychat
LQ Newbie
 
Registered: Oct 2003
Location: India
Distribution: Redhat 8
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks Chort.

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


Thx once again....

 
Old 12-23-2003, 12:46 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
It's not written to disk, that's the great part about it: Always in memory.
 
Old 12-26-2003, 07:46 AM   #5
Bobbychat
LQ Newbie
 
Registered: Oct 2003
Location: India
Distribution: Redhat 8
Posts: 8

Original Poster
Rep: Reputation: 0
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?

 
Old 12-26-2003, 03:50 PM   #6
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
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.
 
Old 12-26-2003, 11:32 PM   #7
Bobbychat
LQ Newbie
 
Registered: Oct 2003
Location: India
Distribution: Redhat 8
Posts: 8

Original Poster
Rep: Reputation: 0
Smile



Thanks Chort.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring squid as a cache only usmanmehmood Linux - Networking 1 10-03-2005 04:58 PM
bind - how to define cache lifetime? meks Linux - Networking 2 04-03-2005 10:53 AM
Forcing BIND cache TTLs BinaryBob Linux - Networking 0 12-05-2003 05:26 PM
How to setup DNS cache server Bind 9.2.1 subzero80 Linux - Networking 2 11-11-2003 09:07 AM
Configuring Bind DNS via Webmin macadam Linux - Newbie 4 09-17-2003 03:21 AM


All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration