[TriLUG] OT: RR Networking Questions ($0.02 HOWTO)

Chris Hedemark chris at yonderway.com
Thu Apr 11 11:09:10 EDT 2002


On Thursday 11 April 2002 10:45 am, you wrote:
> Is setting up a caching DNS server so easy that someone who has already
> done it can throw together a few lines and post it on the list?  (please
> please please)

Since there are so many different versions of Linux you may need to adapt 
these instructions.  This is starting from Red Hat 7.2

1) install the named RPM's...

2) Edit /etc/named.conf.  Make sure it looks like this (it should by default):

options {
        directory "/var/named/";
};

zone  "." {
        type hint;
        file  "named.ca";
};

zone "." {
        type slave;
        file "db.root";
        masters {
        199.166.24.1;
        };
};

zone  "0.0.127.in-addr.arpa" {
        type master;
        file  "0.0.127.in-addr.arpa.zone";
};

zone  "localhost" {
        type master;
        file  "localhost.zone";
};


3) You should already have /var/named populated from the RPM files to match 
the files referenced in /etc/named.conf.

4) Go into /etc/rc5.d (assuming you're at runlevel 5) 

5) Rename the K??named file to S21named.  This will make sure named starts 
next time your machine reboots.

6) As root, run "service named start".  You should see named start without a 
problem.

7) Edit your /etc/resolv.conf file to change your nameserver to 127.0.0.1

8)  Try doing something like "nslookup trilug.org".  The response should 
contain the following:

Server:         127.0.0.1
Address:        127.0.0.1#53

Non-authoritative answer:
Name:   trilug.org
Address: 64.244.27.132


You can point other machines on your LAN to this host as well. 

-- 

Chris Hedemark
Yonder Way
http://yonderway.com



More information about the TriLUG mailing list