LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03: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, 09: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: 76
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, 10: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-22-2003, 11:46 PM   #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: 76
It's not written to disk, that's the great part about it: Always in memory.
 
Old 12-26-2003, 06: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, 02: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: 76
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, 10: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



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 03:58 PM
bind - how to define cache lifetime? meks Linux - Networking 2 04-03-2005 09:53 AM
Forcing BIND cache TTLs BinaryBob Linux - Networking 0 12-05-2003 04:26 PM
How to setup DNS cache server Bind 9.2.1 subzero80 Linux - Networking 2 11-11-2003 08:07 AM
Configuring Bind DNS via Webmin macadam Linux - Newbie 4 09-17-2003 02:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:34 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
Open Source Consulting | Domain Registration