It looks like the error is coming from the PTR record in the forward lookup 
zone. You need to have PTR records in a reverse zone that is defined in 
/etc/named.conf.

 /etc/named.conf:

options {
     directory "/var/named/";           // Working directory
     pid-file "/var/run/named/named.pid";              // Put pid file in 
working dir
//     allow-query { 127.0.0.1; 192.168/16; };

zone "dns.com" {
        type master;
        file "primary/dns.zone";
};

zone "child.dns.com" {
        type master;
        file "primary/child.dns.zone";
};

zone "1.168.192.in-addr.arpa" {
        type master;
        file "primary/1.168.192.in-addr.arpa" {
};

Then you need a SOA record for each zone. The PTR record(s) would go in the 
1.168.192.in-addr.arpa zone file. 

Now, you can cheat with the child zone if there is only going to be one or two 
A records in the child zone, but the rest of the info will be the same as the 
parent zone. Using the $ORIGIN directive, you can change the 'base' of your 
zone from dns.com to child.dns.com:

 $TTL    86400
 dns.com      IN      SOA     dns.com. root.dns.com.  (
                                       1997022700 ; Serial
                                       28800      ; Refresh
                                       14400      ; Retry
                                       3600000    ; Expire
                                       86400 )    ; Minimum
                 IN      NS      dns.com.
                     IN      A     192.168.1.101
$ORIGIN dns.com. 
www     0       IN      A       192.168.1.101
www     0       IN      A       192.168.1.102
$ORIGIN child.dns.com.
ns              IN      A       192.168.1.107
$ORIGIN dns.com.
; other A and CNAME records here for dns.com

Hope this helps,

Dave

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Gabriel Craciun
Sent: Friday, July 31, 2009 6:58 AM
To: Red Hat Enterprise Linux 5 (Tikanga) discussion mailing-list
Subject: Re: [rhelv5-list] dns zone delegation

did you modify named.conf accordingly?




On Fri, 2009-07-31 at 15:56 +0530, Gopinath Achari wrote:
> Hi,
> 
>                 i have configured a Master DNS server, i have also created 
> records to delegate a zone to child dns server
> But when named service is started it says 
> 
> Jul 31 14:33:30 localhost named[21581]: dns.zone:9: ignoring out-of-zone data 
> (child.dns.com)
> 
> I am using bind-9.3.4-10.P1.el5_3.3. 
> 
> Please help. Thanks in advance. 
> 
> how to delegate the zone, is there any other configuration needed
> 
> 
> my zone file ...
> 
> $TTL    86400
> @       IN      SOA     dns.com. root.dns.com.  (
>                                       1997022700 ; Serial
>                                       28800      ; Refresh
>                                       14400      ; Retry
>                                       3600000    ; Expire
>                                       86400 )    ; Minimum
>                 IN      NS      dns.com.
> child.dns.com.  IN      NS      ns.child.dns.com.
> 
> 101             IN      PTR     dns.com.
> @               IN      A       192.168.1.101
> 
> ns.child        IN      A       192.168.1.107
> www     0       IN      A       192.168.1.101
> www     0       IN      A       192.168.1.102
> 
> _______________________________________________
> rhelv5-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/rhelv5-list

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list

Reply via email to