[Pdns-users] Control pdns response
Peter van Dijk
peter.van.dijk at netherlabs.nl
Thu Apr 19 11:51:59 UTC 2012
Hello Andrea,
On Apr 19, 2012, at 13:19 , Andrea Cappelli wrote:
> 1) act as nameserver for a some other server, connected with him through a vpn; for those machine recursor will be available;
>
> 2) serve as public authoritative dns for sub1.domain.com, which is filled with public ip
>
> 3) serve as private dns for the zone sub2.domain.com, which records will be filled with private IP (for example ip on the vpn above)
>
> Goal 1) and 2) are easy, but I can't figure how to handle 3): I don't want a dns query (sent through public interface) for srv1.sub2.domain.com to be resolved, instead my desidered behaviour is to reply that the domain is non existent
>
> Is there a way to accomplish this with powerdns? Or there is a bettere way?
You have two basic options:
a) assuming everybody who needs 3 will be using 1, just load the zone into the recursor
b) if not, split 2 and 3 by running two powerdns instances.
Kind regards,
--
Peter van Dijk
Netherlabs Computer Consulting BV - http://www.netherlabs.nl/
More information about the Pdns-users
mailing list