sub-zone on the same server but in different backend - how?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

sub-zone on the same server but in different backend - how?

Bind-Users forum mailing list
Hi guys.

To experts that most likely be silly easy but my brain got
tangled up and cannot get around it now(also being a novice)

Have a zone on a server, say:

- the.zone

with "flat" files being the backend for it. Now wanting to have:

- sub.the.zone

served by the same BIND server, but stored in.. "SQL" backend.

How... well how to make that work if at all possible?
I'd hope it can be done with some "trickery" in config/zone
files if it is not 'easy-peasy'

many thanks, L.
_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: sub-zone on the same server but in different backend - how?

Tony Finch
lejeczek via bind-users <[hidden email]> wrote:

>
> Have a zone on a server, say:
>
> - the.zone
>
> with "flat" files being the backend for it. Now wanting to have:
>
> - sub.the.zone
>
> served by the same BIND server, but stored in.. "SQL" backend.
>
> How... well how to make that work if at all possible?
> I'd hope it can be done with some "trickery" in config/zone files if it is not
> 'easy-peasy'

It's easy if you think about it the right way :-)

That is, there are two separate things that you need to do to set up a
zone:

  * In the DNS, in the contents of the parent and child zones, you need to
    set up the proper NS records at the delegation point in the parent
    zone, and at the apex of the child zone. (Plus whatever other records
    your delegation might need, such as nameserver A/AAAA records and
    DNSSEC)

  * On the servers, configure your DNS software to host the zone.

This is true regardless of how your zones are stored or how your DNS
software is configured.

So for example, if I have a parent zone (e.g. dotat.at) with an
experimental delegation (e.g. ed25519.dotat.at) and the child zone is only
hosted on the primary server, I just put that server in the NS records,
e.g.

        ed25519.dotat.at. NS onyx.dotat.at.

in both parent and child zones.

That's the first point dealt with.

Regarding the second point, in my example the two zones have very similar
zone{} configurations: they both use "raw" files on disk. But they could
use different storage back-ends if I wanted. For that I would need a dlz{}
or dyndb{} clause to configure the backend. I haven't tried either of them
myself, so I haven't talked about how you actually get the data into a
SQL backend - this is as far as I can help :-)

Tony.
--
f.anthony.n.finch  <[hidden email]>  https://dotat.at/
Malin, Hebrides, Bailey: South 4 or 5, veering west or northwest 5 to 7,
occasionally gale 8 later except in Malin. Moderate or rough, occasionally
very rough in north Bailey. Rain and fog patches. Moderate, occasionally
very
poor.

_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users