[TriLUG] Caching DNS (was Re: mozilla pause for ads)

Jeremy Portzer jeremyp at pobox.com
Thu Jun 17 10:51:29 EDT 2004


On Thu, 2004-06-17 at 08:43, Lance A. Brown wrote:
> For Redhat/Fedora systems:
> 
> root $ yum -y install caching-nameserver
> root $ /sbin/chkconfig named on
> root $ /sbin/service named start
> 
> :-)
> 

Beat me to it.  If you want to test the server, do this:

$ nslookup -sil
> server 127.0.0.1
Default server: 127.0.0.1
Address: 127.0.0.1#53
> www.trilug.org
Server:         127.0.0.1
Address:        127.0.0.1#53
 
Non-authoritative answer:
www.trilug.org  canonical name = moya.trilug.org.
Name:   moya.trilug.org
Address: 64.244.27.141
>

(The > is the prompt in nslookup, so it should be pretty easy to figure
out the above exchange.)

I find nslookup to the easiest program to use for testing name servers;
it doesn't output a lot of info you don't need, unlike 'dig', and it has
more features than 'host'.

Once you're sure the caching nameserver is working, change
/etc/resolv.conf to use your local nameserver (127.0.0.1) as the first
'nameserver' line.  

Hope this helps,
Jeremy

P.S. I usually specify the upstream ISP's servers as 'forwarders' to
reduce load on the root servers.  For example, in /etc/named.conf, in
the first section ("options"), I have these lines:
        forwarders{
                192.101.21.1; 128.109.131.3; 207.217.126.11;
        };

-J.P.

-- 
/---------------------------------------------------------------------\
| Jeremy Portzer        jeremyp at pobox.com      trilug.org/~jeremy     |
| GPG Fingerprint: 712D 77C7 AB2D 2130 989F  E135 6F9F F7BC CC1A 7B92 |
\---------------------------------------------------------------------/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20040617/aede9391/attachment.pgp>


More information about the TriLUG mailing list