• Zone with DNAME has no NS records

    From Dev Op@dsd7150@gmail.com to bind-users on Fri Jun 19 14:29:19 2020
    From Newsgroup: comp.protocols.dns.bind

    --000000000000c7ca4305a86e3488
    Content-Type: text/plain; charset="UTF-8"

    Hi all!

    I have a zone, say it's "mynet.local":

    $TTL 3h ; 3 hours

    $ORIGIN pluto.local.
    @ IN SOA dns1 hostmaster.pluto.local. (
    2020061901 ; serial
    1h ; refresh
    30m ; retry
    7d ; expiration
    1h ) ; minimum

    NS dns1
    NS dns2

    dns1 A 192.168.1.1
    dns2 A 192.168.1.2
    host1 A 192.168.1.3
    ...

    It's a big zone. Now I want to have a DNAME for that zone to make it shorten. Say, I want every host in the local domain to be an alias of the same
    host in pluto.local domain. If I want to resolve hostname host1.local
    DNS server must give me an IP address of host1.pluto.local.
    How to do it?

    I tried make a zone:
    $TTL 3h ; 3 hours

    $ORIGIN local.
    @ IN SOA ns.local. root.localhost. (
    2020061901 ; serial
    1h ; refresh
    30m ; retry
    7d ; expiration
    1h ) ; minimum

    @ DNAME 8m.local.

    But when I start bind, I got error:

    Jun 19 09:13:38 dns1.local bash[28971]: zone local/IN: has no NS records
    Jun 19 09:13:38 dns1.local bash[28971]: zone local/IN: not loaded due to errors.
    Jun 19 09:13:38 dns1.local bash[28971]: internal-view/local/IN: bad zone

    # named-checkzone local ./local.zone
    zone local/IN: has no NS records
    zone local/IN: not loaded due to errors.

    If I add NS servers to local zone I got this error:

    # named-checkzone local ./local.zone
    zone local/IN: NS 'dns1.local' is below a DNAME 'local' (illegal)
    zone local/IN: NS 'dns2.local' is below a DNAME 'local' (illegal)
    zone local/IN: not loaded due to errors.

    I don't know how to solve this task. :( Help me.


    Regards,
    n345v

    --000000000000c7ca4305a86e3488
    Content-Type: text/html; charset="UTF-8"
    Content-Transfer-Encoding: quoted-printable

    <div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div di= r=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"lt= r"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_s= ignature" dir=3D"ltr"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><pre>Hi a= ll!

    I have a zone, say it&#39;s &quot;mynet.local&quot;:

    $TTL 3h=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ; 3 hours</pre><pre>$ORIGIN pluto.loc= al.<br>@=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 IN=C2=A0=C2=A0=C2=A0=C2=A0=C2=
    =A0 SOA dns1 hostmaster.pluto.local. (<br>=C2=A0=C2=A0=C2=A0=C2=A0202006190= 1=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ; serial<br>=C2=A0=C2=A0=C2=A0=C2=A01= h=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ; refresh<br>=C2=A0=C2=A0=C2=A0=C2=A030m=C2= =A0=C2=A0=C2=A0=C2=A0 ; retry<br>=C2=A0=C2=A0=C2=A0=C2=A07d=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ; expiration<br>=C2=A0=C2=A0=C2=A0=C2=A01h )=C2=A0=C2=A0=C2= =A0 ; minimum<br>=C2=A0=C2=A0=C2=A0=C2=A0<br>=C2=A0=C2=A0=C2=A0=C2=A0NS=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 dns1<br>=C2=A0=C2=A0=C2=A0=C2=A0NS=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0dns2</pre><pre>dns1=C2=A0=C2=A0A=C2=A0 192.168.1.1<= br>dns2=C2=A0=C2=A0A=C2=A0 192.168.1.2
    host1=C2=A0=C2=A0A=C2=A0 192.168.1.3
    ...

    It&#39;s a big zone. Now I want to have a DNAME for that zone to make it sh= orten.=20
    Say, I want every host in the local domain to be an alias of the same host =
    in pluto.local domain. If I want to resolve hostname host1.local DNS server=
    must give me an IP address of host1.pluto.local.=20
    How to do it?

    I tried make a zone:
    $TTL 3h=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ; 3 hours</pre><pre>$ORIGIN local.<br= >@=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 IN=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 SOA=
    ns.local. root.localhost. (<br>=C2=A0=C2=A0=C2=A0=C2=A02020061901=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 ; serial<br>=C2=A0=C2=A0=C2=A0=C2=A01h=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ; refresh<br>=C2=A0=C2=A0=C2=A0=C2=A030m=C2=A0=C2=A0= =C2=A0=C2=A0 ; retry<br>=C2=A0=C2=A0=C2=A0=C2=A07d=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 ; expiration<br>=C2=A0=C2=A0=C2=A0=C2=A01h )=C2=A0=C2=A0=C2=A0 ; min= imum</pre><pre>@=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 DNAME=C2=A0=C2=A0 8m.local.

    But when I start bind, I got error:

    Jun 19 09:13:38 dns1.local bash[28971]: zone local/IN: has no NS records<br= >Jun 19 09:13:38 dns1.local bash[28971]: zone local/IN: not loaded due to e= rrors.<br>Jun 19 09:13:38 dns1.local bash[28971]: internal-view/local/IN: b=
    ad zone

    # named-checkzone local ./local.zone<br>zone local/IN: has no NS records<br= >zone local/IN: not loaded due to errors.

    If I add NS servers to local zone I got this error:

    # named-checkzone local ./local.zone<br>zone local/IN: NS &#39;dns1.local&#= 39; is below a DNAME &#39;local&#39; (illegal)<br>zone local/IN: NS &#39;dn= s2.local&#39; is below a DNAME &#39;local&#39; (illegal)<br>zone local/IN: = not loaded due to errors.

    I don&#39;t know how to solve this task. :( Help me.

    </pre><pre>Regards,
    n345v </pre></div></div></div></div></div></div></div></div></div></div></div></d= iv></div></div></div></div></div>

    --000000000000c7ca4305a86e3488--
    --- Synchronet 3.18a-Linux NewsLink 1.113
  • From Mark Andrews@marka@isc.org to Dev Op on Fri Jun 19 23:52:02 2020
    From Newsgroup: comp.protocols.dns.bind

    Choose nameserver names that don’t end in .local.
    --
    Mark Andrews
    On 19 Jun 2020, at 21:29, Dev Op <dsd7150@gmail.com> wrote:

    
    Hi all!

    I have a zone, say it's "mynet.local":

    $TTL 3h ; 3 hours
    $ORIGIN pluto.local.
    @ IN SOA dns1 hostmaster.pluto.local. (
    2020061901 ; serial
    1h ; refresh
    30m ; retry
    7d ; expiration
    1h ) ; minimum

    NS dns1
    NS dns2
    dns1 A 192.168.1.1
    dns2 A 192.168.1.2
    host1 A 192.168.1.3
    ...

    It's a big zone. Now I want to have a DNAME for that zone to make it shorten.
    Say, I want every host in the local domain to be an alias of the same host in pluto.local domain. If I want to resolve hostname host1.local DNS server must give me an IP address of host1.pluto.local.
    How to do it?

    I tried make a zone:
    $TTL 3h ; 3 hours
    $ORIGIN local.
    @ IN SOA ns.local. root.localhost. (
    2020061901 ; serial
    1h ; refresh
    30m ; retry
    7d ; expiration
    1h ) ; minimum
    @ DNAME 8m.local.

    But when I start bind, I got error:

    Jun 19 09:13:38 dns1.local bash[28971]: zone local/IN: has no NS records
    Jun 19 09:13:38 dns1.local bash[28971]: zone local/IN: not loaded due to errors.
    Jun 19 09:13:38 dns1.local bash[28971]: internal-view/local/IN: bad zone

    # named-checkzone local ./local.zone
    zone local/IN: has no NS records
    zone local/IN: not loaded due to errors.

    If I add NS servers to local zone I got this error:

    # named-checkzone local ./local.zone
    zone local/IN: NS 'dns1.local' is below a DNAME 'local' (illegal)
    zone local/IN: NS 'dns2.local' is below a DNAME 'local' (illegal)
    zone local/IN: not loaded due to errors.

    I don't know how to solve this task. :( Help me.

    Regards,
    n345v
    _______________________________________________
    Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

    ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.


    bind-users mailing list
    bind-users@lists.isc.org
    https://lists.isc.org/mailman/listinfo/bind-users
    --- Synchronet 3.18a-Linux NewsLink 1.113