Re: looking for DNS GURU

Eric Koldeweij <[email protected]>
Newsgroups gmane.linux.redhat.release.enigma
Message-ID <[email protected]>
koff200 wrote:

Hi all
is somebody can give me the hole way( every stage)  to implément DNS server
in my local network ?
I'm using this  ip adresse  223.10.100.1 for my serveur.(who's name is
Orion). 223.10.100.2 for
Orion2  and 223.10.100.3  for Orion3
I'm planning to use BIND 9.2.0.

-----------------------------------------------------------------------
You are giving way too little information to work with and setting up a 
DNS is not explained in a single e-mail but here are general rules to 
set up a simple DNS service:

1 - chart your whole network. Place your DNS servers on key points so 
that even an outage of part of the network will still give the remaining 
nodes DNS access.
2 - determine your master name server.
3 - make sure the internet root DNS servers know where your domain's DNS 
servers are. Usually your domain service provider will tell you how to 
do that.
4 - on the master, create a file in /var/named which has a $TTL, a SOA 
record, at least 2 NS records, an MX record and A or CNAME records for 
each of your hosts. One of the A records must be localhost, pointing to 
127.0.0.1
5 - for reverse name lookups, create a file which has a $TTL, a SOA 
record, as least 2 NS records and PTR records for each of your hosts.
6 - edit named.conf on the master and incorporate the following entries
zone "mydomain.mynet" IN {
                type master;
                file "first.file.name";
                allow-update { none; };
};
zone "100.10.223.in-addr.arpa" IN {
                type master;
                file "second.file.name";
                allow-update { none; };
};
7 - edit named.conf on each slave and add the lines (suppose 
223.10.100.1 is the master)
zone "mydomain.mynet" IN {
                type slave;
                file "mydomain.mynet.slave";
                masters { 223.10.100.1; };
};
zone "100.10.223.in-addr.arpa" IN {
                type slave;
                file "100.10.223.in-addr.arpa.slave";
                masters { 223.10.100.1; };
};


It's too much to explain the format of a zone file. I recommend you to 
buy and read O'Reilly's "DNS and BIND" by Paul Albitz and Cricket Liu 
(ISBN 0-596-00158-4) Here is an example of a zone file:

$TTL 86400
mydomain.mynet.           IN SOA  orion.mydomain.mynet. 
root.mydomain.mynet. (
                                2003040201 ; serial
                                1d       ; refresh
                                1h       ; retry
                                1w      ; expire
                                2h       ; negative cache TTL
                                )
                        NS      orion.mydomain.mynet.
                        NS      orion2.mydomain.mynet.
                        NS      orion3.mydomain.mynet.
                        MX      10 mailserver.mydomain.mynet.
$ORIGIN mydomain.mynet.
orion                      A       223.10.100.1
orion2                    A       223.10.100.2
orion3                    A       223.10.100.3
mailserver             A       223.10.100.4
localhost               A       127.0.0.1

the reverse lookup database file is similar but with PTR records like this:

1   IN PTR orion.mydomain.mynet.

there are many many things not explained yet but I do not intend to 
write a whole book here. Please consult the various documentation 
(O'Reilly's book, Linux' DNS-Howto) for that.

Good luck.

Eric.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.