Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-22-2003, 04:50 AM
|
#1
|
LQ Newbie
Registered: Oct 2003
Location: India
Distribution: Redhat 8
Posts: 8
Rep:
|
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
|
|
|
12-22-2003, 10:55 AM
|
#2
|
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:
|
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.
|
|
|
12-22-2003, 11:44 PM
|
#3
|
LQ Newbie
Registered: Oct 2003
Location: India
Distribution: Redhat 8
Posts: 8
Original Poster
Rep:
|
Thanks Chort.
BTW:Where does it keep the cache data?in the etc/db.cache file?
Thx once again....

|
|
|
12-23-2003, 12:46 AM
|
#4
|
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:
|
It's not written to disk, that's the great part about it: Always in memory.
|
|
|
12-26-2003, 07:46 AM
|
#5
|
LQ Newbie
Registered: Oct 2003
Location: India
Distribution: Redhat 8
Posts: 8
Original Poster
Rep:
|
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?

|
|
|
12-26-2003, 03:50 PM
|
#6
|
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:
|
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.
|
|
|
12-26-2003, 11:32 PM
|
#7
|
LQ Newbie
Registered: Oct 2003
Location: India
Distribution: Redhat 8
Posts: 8
Original Poster
Rep:
|
|
|
|
All times are GMT -5. The time now is 08:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|