• Re: Zone with DNAME has no NS records

    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 donrCOt end in .local.
    --
    Mark Andrews
    On 19 Jun 2020, at 21:29, Dev Op <dsd7150@gmail.com> wrote:

    N++
    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.21d-Linux NewsLink 1.2