View Full Version : Linux dns server
Brian
03-13-2002, 10:31 PM
In my MCSE class we are setting up a fairly large network with several sites ect. They all run into a cisco router. One of my roles in this ordeal is to be the unix admin. I loaded up a copy of mandrake on one of the systems the other day just to throw a twist on things for the class. Problem being that i've used linux for a total of maybe 2 hours :). Now I was able to get apache up and running in a matter of minutes, but does anyone here have any tips for getting a dns server up on it? Possibly some sites where I could find such info would be appreciated. I'm setting this up tomorrow along with an IIS cluster and exchange server 2000......
Sorry - Can't help with DNS on linux yet.
But. Setting it up on solaris was a piece of cake.
look at /etc/named.conf, if it exists. That's where the zones you are doing DNS for are defined. Each zone definition uses a file (which I keep in /etc/namedb/*).
Here's stuff out of my named.conf:
#
# where the zone files are stored
#
options {
directory "/etc/namedb";
};
#
# domain highaltitudeimports.com - brian
#
zone "highaltitudeimports.com" {
type master;
file "highaltitudeimports.com";
};
On solaris, the name daemon process is /usr/sbin/in.named.
Brian
03-14-2002, 10:16 AM
That actually helps a lot. I'll check it out today and see what I can get going. Thanks john
justin
03-14-2002, 12:42 PM
Linux will use an /etc/named.conf as well. I keep my zone files in /var/named/, that just depends on where you feel like keeping zone files. My conf file looks like this, kinda big sorry, but you get the idea of what kind of settings you can add to the server.
ns:~$ cat /etc/named.conf
/*
* BIND 8 configuration
*/
options {
directory "/var/named/";
named-xfer "/usr/sbin/named-xfer";
dump-file "named_dump.db";
pid-file "/var/run/named.pid";
statistics-file "named.stats";
memstatistics-file "named.memstats";
notify yes;
auth-nxdomain yes;
multiple-cnames yes;
allow-query { any; };
allow-transfer { 65.193.124.61; };
transfers-in 40;
transfers-per-ns 50;
max-transfer-time-in 90;
cleaning-interval 200;
interface-interval 200;
statistics-interval 180;
};
zone "." { type hint; file "root.hints"; };
zone "localhost" { type master; notify no; file "localhost"; };
zone "0.0.127.in-addr.arpa" in { type master; notify no; file "127.0.0"; };
zone "117.247.206.in-addr.arpa" in { type master; file "reverse"; };
zone "jackmoves.com" in { type master; file "jackmoves.com"; };
zone "galaktek.com" in { type master; file "galaktek.com"; };
zone "rekognizenetworks.com" in { type master; file "rekognizenetworks.com"; };
zone "dastrade.com" in { type master; file "dastrade.com"; };
zone "focomputers.com" in { type master; file "focomputers.com"; };
zone "youneekartwork.com" in { type master; file "youneekartwork.com"; };
#zone "rwtd.com" in { type master; file "rwtd.com"; };
zone "havelick.com" in { type master; file "havelick.com"; };
zone "legriders.com" in { type master; file "legriders.com"; };
zone "teamlegend.com" in { type master; file "teamlegend.com"; };
zone "pbandjelly.org" in { type master; file "pbandjelly.org"; };
zone "2k1tech.com" in { type master; file "2k1tech.com"; };
zone "teamyeti.org" in { type master; file "teamyeti.org"; };
zone "jasonwagoner.com" in { type master; file "jasonwagoner.com"; };
zone "303paintball.com" in { type master; file "303paintball.com"; };
zone "fishpig.org" in { type master; file "fishpig.org"; };
zone "nigmz3k.com" in { type master; file "nigmz3k.com"; };
zone "mstsinfo.com" in { type master; file "mstsinfo.com"; };
zone "allsupra.com" in { type master; file "allsupra.com"; };
My dns server runs as "/usr/sbin/named" with parameters to run it as a specific user. The software I use is BIND which you can get from www.isc.org. Mandrake probably has the rpm's installed by default, unless you did a custom install. HTH.
Justin
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.