On Thu, Apr 22, 2021 at 04:53:21PM +0200, Jaroslaw Rafa wrote:

> > I needed to have Postfix to solve Internet DNS names, for obvious reasons.
> > At the same time, I needed to be able to solve Intranet DNS names:
> > monitoring server, backup server, etc...
> 
> I was once I need to get exactly this.
> I solved this by setting up my own nameserver at localhost, that delegates
> internal names to resolve by internal nameserver, and external ones to
> resolve by external nameserver. It can be done pretty easy if you can
> distinguish internal from external names by specific domain suffix(es).

Yes, with unbound this takes the form of a "stub zone":

    stub-zone:
        name: "example.com"
        stub-addr: 192.0.2.1
        stub-addr: 192.0.2.2
        stub-addr: 192.0.2.3

queries for "example.com" then go to the indicated nameservers, rather
than the ones listed in the parent domain.

-- 
    Viktor.

Reply via email to