TLD Server

Wael Shahin wael.shahin at gmail.com
Tue Apr 24 16:12:20 UTC 2007


Dear List,
Am confused about what is a TLD name server configuration look like and
I was not success full to find enough documents or maybe i was looking
wrong places, any help. hints or pointing out things will be so
appreciated

am trying to configure a TLD lets say its name is kom
so what i suppose to do is contact IANA and have that registered on
their servers and pointing to the DNS servers am going to use to serve
the kom
here is an ugly configuration i have done on two servers for testing
purposes
They work but i don't feel comfortable with these poor configurations
these were only something to make it work with the minimal efforts for
testing

kom and gov.kom are on the same server 
and bassam.gov.kom is on another server

========Authoritative server
named.conf:
include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
// zone "." {
//      type hint;
//      file "/etc/bind/db.root";
//  };

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "bassam.gov.kom" {
        type master;
        file "named.bassam.gov.kom";
        };
zone "kom" in{                                               
        type master;                                                  
        file "named.kom";                                    
};

zone "gov.kom" in{                                               
        type master;
        file "named.gov.kom";
};



zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};
============end of named.conf

named.conf.options:
options {
        directory "/var/cache/bind";
        auth-nxdomain no;    # conform to RFC1035
};
===========end of named.conf.options

kom:

$TTL    600
@       IN      SOA     ns1.kom.  hostmaster.root.kom. (
                                2007230402   ; Serial
                                7201         ; Refresh
                                7201         ; Retry
                                2419200      ; Expire
                                86400 )      ; Minimum

;
; Nameservers for the linux.com.lb domain
;
                IN      NS      ns1.kom.

;
; Mail server for the linux.com.lb domain
;
;linux.com.lb.           IN      MX      10      mail

;
; Hosts in domain
;
;nesmahosting.com.sa.   IN      A      172.16.10.20
;ftp             IN      A       172.16.10.20
;www             IN      A       172.16.10.19

;mail            IN      A       172.16.10.21
ns1              IN      A       172.16.10.27
==========end of kom

gov.kom:

$TTL    600
@       IN      SOA     ns1.gov.kom.  hostmaster.root.kom. (
                                2007230403   ; Serial
                                7200         ; Refresh
                                7200         ; Retry
                                2419200      ; Expire
                                86400 )      ; Minimum

;
; Nameservers for the linux.com.lb domain
;
                IN      NS      ns1.gov.kom.

;
; Mail server for the linux.com.lb domain
;
;linux.com.lb.           IN      MX      10      mail

;
; Hosts in domain
;
;nesmahosting.com.sa.   IN      A      172.16.10.20
;ftp             IN      A       172.16.10.20
;www             IN      A       172.16.10.19
;mail            IN      A       172.16.10.21
ns1              IN      A       172.16.10.27
bassam           IN      NS      ns1.bassam.gov.kom.

===========end of gov.kom


Server2 bassam.gov.kom ===


named.conf:

include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
zone "." {
        type hint;
        file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "bassam.gov.kom" {
        type master;
        file "named.bassam.gov.kom";
};


zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};
include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
zone "." {
        type hint;
        file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};

zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};

zone "bassam.gov.kom" {
        type master;
        file "named.bassam.gov.kom";
};


zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};

zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};
============end of named.conf

db.root:
include "/etc/bind/named.conf.local";
mailholder:/etc/bind# cat db.root 

; <<>> DiG 9.2.3 <<>> ns . @a.root-servers.net.
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18944
;; flags: qr aa rd; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13

;; QUESTION SECTION:
; .                             IN      NS

;; ANSWER SECTION:
; .                     518400  IN      NS      A.ROOT-SERVERS.NET.
; .                     518400  IN      NS      B.ROOT-SERVERS.NET.
; .                     518400  IN      NS      C.ROOT-SERVERS.NET.
; .                     518400  IN      NS      D.ROOT-SERVERS.NET.
; .                     518400  IN      NS      E.ROOT-SERVERS.NET.
; .                     518400  IN      NS      F.ROOT-SERVERS.NET.
; .                     518400  IN      NS      G.ROOT-SERVERS.NET.
; .                     518400  IN      NS      H.ROOT-SERVERS.NET.
; .                     518400  IN      NS      I.ROOT-SERVERS.NET.
; .                     518400  IN      NS      J.ROOT-SERVERS.NET.
; .                     518400  IN      NS      K.ROOT-SERVERS.NET.
; .                     518400  IN      NS      L.ROOT-SERVERS.NET.
; .                     518400  IN      NS      M.ROOT-SERVERS.NET.
.                       IN      NS      ns1.kom.


;; ADDITIONAL SECTION:
; A.ROOT-SERVERS.NET.   3600000 IN      A       198.41.0.4
; B.ROOT-SERVERS.NET.   3600000 IN      A       192.228.79.201
; C.ROOT-SERVERS.NET.   3600000 IN      A       192.33.4.12
; D.ROOT-SERVERS.NET.   3600000 IN      A       128.8.10.90
; E.ROOT-SERVERS.NET.   3600000 IN      A       192.203.230.10
; F.ROOT-SERVERS.NET.   3600000 IN      A       192.5.5.241
; G.ROOT-SERVERS.NET.   3600000 IN      A       192.112.36.4
; H.ROOT-SERVERS.NET.   3600000 IN      A       128.63.2.53
; I.ROOT-SERVERS.NET.   3600000 IN      A       192.36.148.17
; J.ROOT-SERVERS.NET.   3600000 IN      A       192.58.128.30
; K.ROOT-SERVERS.NET.   3600000 IN      A       193.0.14.129
; L.ROOT-SERVERS.NET.   3600000 IN      A       198.32.64.12
; M.ROOT-SERVERS.NET.   3600000 IN      A       202.12.27.33
ns1.kom.        IN      A       172.16.10.27

=========end of db.root

bassam.gov.kom:
$TTL    600
@       IN      SOA     ns1.bassam.gov.kom.  hostmaster.bassam.gov.kom.
(
                                2007230403   ; Serial
                                7200         ; Refresh
                                7200         ; Retry
                                2419200      ; Expire
                                86400 )      ; Minimum

;
; Nameservers for the linux.com.lb domain
;
                IN      NS      ns1.bassam.gov.kom.

;
; Mail server for the linux.com.lb domain
;
;linux.com.lb.           IN      MX      10      mail

;
; Hosts in domain
;
;nesmahosting.com.sa.   IN      A      172.16.10.20
;ftp             IN      A       172.16.10.20
;www             IN      A       172.16.10.19
;mail            IN      A       172.16.10.21
ns1              IN      A       172.16.10.26
@               IN      A       172.16.10.20
=========end of bassam.gov.kom

Wael



More information about the bind-users mailing list