Newbies to Bind, please help !

Gareth Hastings ghastings at sc.rr.com
Sat Dec 8 19:06:48 UTC 2001


Here's what my bind named.conf file looks like. It runs the dns for the
domain gshock.co.uk. It works. Its not set to do inverse queries and I'm
not a bind guru.

options {
        directory "/var/named";

        version "0.1 Beta 1";
        query-source port 53;
};

zone "gshock.co.uk" in {
        type master;
        file "db.gshock.co.uk";
        notify yes;
};

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

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

controls {
       inet 127.0.0.1 allow { localhost; } keys { "***"; };
};

key "***" {
        algorithm hmac-md5;
        secret "***";
};


if you wanted to add the domain www.coke.com

you just put in

zone "coke.com" in {
	type master;
	file "db.coke.com";
};

if you want reserve dns I believe you do

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

the first line zone "3.2.1.in-addr.arpa" is normally the first 3 octets
of your IP reversed. So this would be 3.2.1 if your ip was 1.2.3.x

You can restart bind by sending it a SIGHUP or using the bind tool 'ndc'
like ndc reload which causes the server to re-read its named.conf and
reload any changes.

To verify it working just turn query logging on 'ndc querylog' and then
try using it to resolve a domain. Use the dig tool for better info

Again, I'm only just done this so I may not be correct. But hope it
helps

Gareth

-----Original Message-----
From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
Behalf Of Michael
Sent: 08 December 2001 12:16
To: comp-protocols-dns-bind at moderators.isc.org
Subject: Newbies to Bind, please help !

Hi !

 I need to put a Dns Server in my entreprise, i have heared a good thing
about bind ... but i don't know how to install it :(   I have download
source and i have compile, all is seems to be good, but :

-  I don't konw how to verify if my dns bind was correclty install ??
-  I have make some modifs to named.conf , but i don't know how restart
bind
?

 I need to setup bind to drive some domain name, like (example)
www.pepsi.com ; www.coke.com and www.sprite.com  to a one ip adresses.
And
i need to setup bind too
act a name caching server for my local network.   Please, give me an
exemple
of confirguration file i neeed !

 Thanks a lot !

 Michael








More information about the bind-users mailing list