Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unable to Load the Zone file

8 views
Skip to first unread message

Harshith Mulky

unread,
Sep 27, 2016, 3:35:24 AM9/27/16
to bind-...@lists.isc.org

I have created this in the /etc/named.conf


zone "enum.bhnis.net" IN {
        type master;
        file "enum.bhnis.net";
};



And the file looks like this


$ORIGIN .
$TTL 3600       ; 1 hour
@       IN SOA  atlanta.enum.bhnis.net. root.enum.bhnis.net. (
                                2008927043 ; serial
                                900        ; refresh (15 minutes)
                                600        ; retry (10 minutes)
                                2419200    ; expire (4 weeks)
                                900        ; minimum (15 minutes)
                                )
; Name Server (NS) records
enum.bhnis.net.              IN  NS atlanta.enum.bhnis.net.
                                 NS    72.31.4.5.
                                 NS    72.31.4.36.
; A records
atlanta.enum.bhnis.net.      IN  A   10.54.78.28

$ORIGIN +.enum.bhnis.net.
$TTL 300        ; 5 minutes
0.9.4.6.4.6.9.3.1.8.1   NAPTR   10 10 "u" "sip+E2U" "!^.*$!sip:+18139...@65.32.11.202:5080!" .
2.6.9.5.0.6.9.7.0.4     NAPTR   10 10 "u" "sip+E2U" "!^.*$!sip:+4079...@67.78.171.98!" .



getting these errors when starting named service


enum.bhnis.net:3: ignoring out-of-zone data (.)
enum.bhnis.net:12: NS record '72.31.4.5.' appears to be an address
enum.bhnis.net:13: NS record '72.31.4.36.' appears to be an address
zone enum.bhnis.net/IN: has 0 SOA records
zone enum.bhnis.net/IN: not loaded due to errors.
_default/enum.bhnis.net/IN: bad zone
                                                           [FAILED]



What is the problem here?

Matus UHLAR - fantomas

unread,
Sep 27, 2016, 3:39:35 AM9/27/16
to bind-...@lists.isc.org
On 27.09.16 07:34, Harshith Mulky wrote:
>; Name Server (NS) records
>enum.bhnis.net. IN NS atlanta.enum.bhnis.net.
> NS 72.31.4.5.
> NS 72.31.4.36.


>getting these errors when starting named service
>
>
>enum.bhnis.net:3: ignoring out-of-zone data (.)
>enum.bhnis.net:12: NS record '72.31.4.5.' appears to be an address
>enum.bhnis.net:13: NS record '72.31.4.36.' appears to be an address
>zone enum.bhnis.net/IN: has 0 SOA records
>zone enum.bhnis.net/IN: not loaded due to errors.
>_default/enum.bhnis.net/IN: bad zone

>What is the problem here?

is there something you don't understand on error message?

"NS record '72.31.4.5.' appears to be an address"

IP Address can only appear at right side of A record (AAAA for ipv6
addresses). NS records needs domain names on right side.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Boost your system's speed by 500% - DEL C:\WINDOWS\*.*

Mark Andrews

unread,
Sep 27, 2016, 3:44:08 AM9/27/16
to Harshith Mulky, bind-...@isc.org

Remove the "$ORIGIN ." line. The zone statement sets the
initial $ORIGIN.

Nameserver records take NAMES not IP addresses. Give the
machines names. Then add address records for those names.
Then use those names in the NS records.

Mark

In message <PN1PR01MB0270F39A1D...@PN1PR01MB0270.INDPRD01.PROD.OUTLOOK.COM>, Harshith Mulky writes:
> I have created this in the /etc/named.conf
>
>
> zone "enum.bhnis.net" IN {
> type master;
> file "enum.bhnis.net";
> };
>
>
>
> And the file looks like this
>
>
> $ORIGIN .
> $TTL 3600 ; 1 hour
> @ IN SOA atlanta.enum.bhnis.net. root.enum.bhnis.net. (
> 2008927043 ; serial
> 900 ; refresh (15 minutes)
> 600 ; retry (10 minutes)
> 2419200 ; expire (4 weeks)
> 900 ; minimum (15 minutes)
> )
> ; Name Server (NS) records
> enum.bhnis.net. IN NS atlanta.enum.bhnis.net.
> NS 72.31.4.5.
> NS 72.31.4.36.
> ; A records
> atlanta.enum.bhnis.net. IN A 10.54.78.28
>
> $ORIGIN +.enum.bhnis.net.
> $TTL 300 ; 5 minutes
> 0.9.4.6.4.6.9.3.1.8.1 NAPTR 10 10 "u" "sip+E2U" "!^.*$!sip:+18139646490=
> @65.32.11.202:5080!" .
> 2.6.9.5.0.6.9.7.0.4 NAPTR 10 10 "u" "sip+E2U" "!^.*$!sip:+4079605962@=
> 67.78.171.98!" .
>
>
>
> getting these errors when starting named service
>
>
> enum.bhnis.net:3: ignoring out-of-zone data (.)
> enum.bhnis.net:12: NS record '72.31.4.5.' appears to be an address
> enum.bhnis.net:13: NS record '72.31.4.36.' appears to be an address
> zone enum.bhnis.net/IN: has 0 SOA records
> zone enum.bhnis.net/IN: not loaded due to errors.
> _default/enum.bhnis.net/IN: bad zone
> [FAILED]
>
>
>
> What is the problem here?
>
> --_000_PN1PR01MB0270F39A1D95A4F7940530B981CC0PN1PR01MB0270INDP_
> Content-Type: text/html; charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <html>
> <head>
> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
> 1">
> <style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
> n-bottom:0;} --></style>
> </head>
> <body dir=3D"ltr">
> <div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
> -family:Calibri,Arial,Helvetica,sans-serif;">
> <p>I have created this in the /etc/named.conf</p>
> <p><br>
> </p>
> <p></p>
> <div>zone &quot;enum.bhnis.net&quot; IN {<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type master;<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; file &quot;enum.bhnis.net&quot;;=
> <br>
> };<br>
> </div>
> <p></p>
> <p><br>
> </p>
> <p><br>
> </p>
> <p>And the file looks like this</p>
> <p><br>
> </p>
> <p></p>
> <div>$ORIGIN .<br>
> $TTL 3600&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; 1 hour<br>
> @&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN SOA&nbsp; atlanta.enum.bhnis.net. =
> root.enum.bhnis.net. (<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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&nbsp;&nbsp;&nbsp;&nbsp;=
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 900&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
> ;&nbsp; ; minimum (15 minutes)<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
> sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<br>
> ; Name Server (NS) records<br>
> enum.bhnis.net.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
> &nbsp;&nbsp;&nbsp; IN&nbsp; NS atlanta.enum.bhnis.net.<br>
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;=
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
> sp;&nbsp;&nbsp;&nbsp;&nbsp; NS&nbsp;&nbsp; &nbsp;72.31.4.5.<br>
> &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;=
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
> sp;&nbsp;&nbsp;&nbsp;&nbsp; NS&nbsp;&nbsp; &nbsp;72.31.4.36.<br>
> ; A records<br>
> atlanta.enum.bhnis.net.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IN&nbsp; A&nbsp;&nbsp=
> ; 10.54.78.28<br>
> <br>
> $ORIGIN &#43;.enum.bhnis.net.<br>
> $TTL 300&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; 5 minutes<br>
> 0.9.4.6.4.6.9.3.1.8.1&nbsp;&nbsp; NAPTR&nbsp;&nbsp; 10 10 &quot;u&quot; &qu=
> ot;sip&#43;E2U&quot; &quot;!^.*$!sip:&#43;18139646490@65.32.11.202:5080!&qu=
> ot; .<br>
> 2.6.9.5.0.6.9.7.0.4&nbsp;&nbsp;&nbsp;&nbsp; NAPTR&nbsp;&nbsp; 10 10 &quot;u=
> &quot; &quot;sip&#43;E2U&quot; &quot;!^.*$!sip:&#43;40796...@67.78.171.98=
> !&quot; .</div>
> <p></p>
> <p><br>
> </p>
> <p><br>
> </p>
> <p>getting these errors when starting named service</p>
> <p><br>
> </p>
> <p></p>
> <div>enum.bhnis.net:3: ignoring out-of-zone data (.)<br>
> enum.bhnis.net:12: NS record '72.31.4.5.' appears to be an address<br>
> enum.bhnis.net:13: NS record '72.31.4.36.' appears to be an address<br>
> zone enum.bhnis.net/IN: has 0 SOA records<br>
> zone enum.bhnis.net/IN: not loaded due to errors.<br>
> _default/enum.bhnis.net/IN: bad zone<br>
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
> sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
> sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [FAILED]</div>
> <p></p>
> <p><br>
> </p>
> <p><br>
> </p>
> <p>What is the problem here?<br>
> </p>
> </div>
> </body>
> </html>
>
> --_000_PN1PR01MB0270F39A1D95A4F7940530B981CC0PN1PR01MB0270INDP_--
>
> --===============7572195843602053170==
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> _______________________________________________
> Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
>
> bind-users mailing list
> bind-...@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
> --===============7572195843602053170==--
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org

Niall O'Reilly

unread,
Sep 27, 2016, 7:07:54 AM9/27/16
to Harshith Mulky, bind-...@lists.isc.org


On 27 Sep 2016, at 8:34, Harshith Mulky wrote:

> And the file looks like this
>
> $ORIGIN .
> $TTL 3600 ; 1 hour
> @ IN SOA atlanta.enum.bhnis.net. root.enum.bhnis.net. (
[...]
> getting these errors when starting named service
>
> enum.bhnis.net:3: ignoring out-of-zone data (.)
[...]
> What is the problem here?

The "$ORIGIN" directive sets the value which will be substituted for "@".
Because of this, the name of the SOA record is ".", which is outside
the zone you specified in the configuration file (enum.bhnis.net), and the
SOA record is ignored.

You could either put

$ORIGIN enum.bhnis.net. ;; NB: the final dot is significant!

or just omit the "$ORIGIN" directive.


Best regards,

Niall O'Reilly
0 new messages