[Pdns-users] Different replies based on origin of query

韩凯 hankai17 at 126.com
Mon Oct 15 11:54:43 UTC 2018


Means edns?




| |
韩凯
邮箱:hankai17 at 126.com
|

签名由 网易邮箱大师 定制

On 10/14/2018 16:08, Chris wrote:

We've had good luck doing this with the pipe backend.  We have "magic"
urls which resolve differently based on customer information and client
location.  


On Thu, Oct 04, 2018 at 06:27:18PM +0000, Jason Bailey wrote:
> Well I'm actually referring to pdns (auth) specifically, not the recursor.  In
> our case, we have both pdns and pdns_recursor running on a single DNS server.
> On that system, pdns is bound to one IP (NS) and pdns_recursor is bound to
> another IP (fwd/recursor). If someone queries the NS IP, then I may want to
> return different responses based on where they're coming from.
>
> Is there a way to do this?
>
> Jason
>
> On Friday, September 28, 2018 10:10:49 AM MDT Pieter Lexis wrote:
> > Hi Jason,
> >
> > On 9/28/18 4:55 PM, Jason Bailey wrote:
> > > Is there a way with pdns (auth) version 4.1 to essentially accomplish
> > > what BIND does with views? In other words, different responses for the
> > > same DNS records based on what IP or IPs the queries come from?
> > >
> > > Suppose I wanted a given zone only to resolve if the queries come from a
> > > select IP -- can I do that? If so, how?
> >
> > This smells like you want your local recursor to provide different
> > answers for yourdomain.example than 'other' resolvers on the internet.
> > The easiest way to do that is to use the auth-zones[1] feature of the
> > PowerDNS Recursor. Or, if you need more control, you can forward queries
> > for yourdomain.example to another authoritative server (e.g. running on
> > the local loopback) using forward-zones[2].
> >
> > If this is not your usecase, please provide the mailinglist with more
> > information.
> >
> > Best regards,
> >
> > Pieter
> >
> > 1 - https://doc.powerdns.com/recursor/settings.html#auth-zones
> > 2 - https://doc.powerdns.com/recursor/settings.html#forward-zones
>
>
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users
_______________________________________________
Pdns-users mailing list
Pdns-users at mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20181015/dd118bd9/attachment.html>


More information about the Pdns-users mailing list