LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   What would BIND zone file for "com." look like? (https://www.linuxquestions.org/questions/linux-networking-3/what-would-bind-zone-file-for-com-look-like-4175473653/)

gthaker 08-16-2013 03:29 PM

What would BIND zone file for "com." look like?
 
I am trying to setup some root and top level domain DNS servers in order to learn more. What I don't understand is what com.zone file would like like. Given that DNS servers for "com." are the list below:

Code:

a.gtld-servers.net.      A 192.5.6.30
b.gtld-servers.net.      A 192.33.14.30
c.gtld-servers.net.      A 192.26.92.30
....

I have setup my com.zone file as below. But using named-checkzone I get the errors indicated. I don't know how one can avoid "ignoring out-of-zone data" message; and not sure why it is not letting me setup a delegation for "cnn.com" zone.

Code:

Mint12-32> more com.zone
$TTL 1D
@        IN SOA        @        admin.a.gtld-servers.net. (
                                            22 ; serial
                                        1D        ; refresh
                                        1H        ; retry
                                        1W        ; expire
                                        3H )        ; minimum
;
; My name server(s)
;
        NS a.gtld-servers.net.
        NS b.gtld-servers.net.
        NS c.gtld-servers.net.
a.gtld-servers.net.        A 192.5.6.30
b.gtld-servers.net.        A 192.33.14.30
c.gtld-servers.net.        A 192.26.92.30
;
; my children
;
cnn.com.        NS ns1.cnn.com.
ns1.cnn.com.        A 157.166.255.19
;
; other addresss records
;
ns1.com.        A 157.166.255.19
yahoo.com.        A 1.2.4.1
google.com.        A 1.2.5.1
a.com.        A 192.5.6.30


Mint12-32> named-checkzone  com. com.zone
com.a:14: ignoring out-of-zone data (a.gtld-servers.net)
com.a:15: ignoring out-of-zone data (b.gtld-servers.net)
com.a:16: ignoring out-of-zone data (c.gtld-servers.net)
zone com/IN: cnn.com/NS 'ns1.cnn.com' (out of zone) has no addresses records (A or AAAA)
zone com/IN: loaded serial 22
OK

ANY HINTS WELCOME.

Gautam

MikeDeltaBrown 08-17-2013 12:41 AM

Probably because your .NET servers (a.gtld-servers.net., etc.) are in your .COM zone. Those 2 zones should be children of the root zone.


All times are GMT -5. The time now is 07:16 PM.