LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Squid and a caching name server

[ILUG] Squid and a caching name server

john.allen at online.ie john.allen at online.ie
Fri Oct 5 18:11:31 IST 2001


Niall O Broin wrote:

> I'm trying to revive squid on my machine. It works fine as long as I'm
> connected, but when I disconnect from the net it loses the plot and even
> after reconnecting it still won't work. The way to resolve it is to restart
> squid after connecting to the net but this is a bit of a PITA.
> 
> It seems to me that the way to solve this is to set up a local caching
> nameserver, something that's been on the long finger for an even longer
> time. So, I installed bind on this box but I've one query - from the DNS
> HOWTO I have a sample caching named.conf which is rather simple 
> -------------------------------------------------------------------------- 
> options {
> 	directory "/var/named";
> };
> zone "." {
> 	type hint;
>         file "root.hints";
> };
> zone "0.0.127.in-addr.arpa" {
> 	type master;
>         file "pz/127.0.0";
> };
> -------------------------------------------------------------------------- 
> 
> 

I don't use a forwarders, and just fill the root.hints with the output 
from dig, that way you don't rely on a specific ISP.

Here's my named.conf; NOTE I do dynamic updates from my DHCP server,
so I serve for 127.0.0, and 192.168.0, both forward and reverse.
Of course you need to setup the zone files too, at least for the
static addresses.

options {
	pid-file "/var/run/named/named.pid";
   directory "/var/named";
   auth-nxdomain yes;
   // query-source address * port 53;
};

zone "." {
   type hint;
   file "root.hints";
};

zone "localdomain" {
   type master;
   file "zone/db.localdomain";
   allow-update { localhost; };
};

zone "moyville.ie" {
   type master;
   file "zone/db.moyville.ie";
   allow-update { localhost; };
};

zone "0.0.127.in-addr.arpa" {
   type master;
   file "zone/db.127.0.0";
   allow-update { localhost; };
};

zone "0.168.192.in-addr.arpa" {
   type master;
   file "zone/db.192.168.0";
   allow-update { localhost; };
};


-- 
John Allen                         email: john.allen at online.ie
OpenSource Developer                    :
                                      www: http://udk.sf.net
                                    phone: intl+353-14937616
                                         : intl+353-862315986





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell