[Pdns-users] Different responses based on client IP (not geo)
cmouse at youzen.ext.b2.fi
Sat Aug 23 05:59:07 UTC 2014
On Fri, Aug 22, 2014 at 10:08:45PM -0700, Johannes Ernst wrote:
> I'd like to do this:
> 1. If a client queries from a particular subnet, an A record query for foo.example.com returns something (say 18.104.22.168)
> 2. If a client queries from somewhere else, an A record query for foo.example.com returns something else (say 22.214.171.124)
> It's sort of like the geo backend, but not quite, because no actual geography is involved. Can this be done? And if so, how?
You can use pipe or remotebackend to achieve this for normal lookups. If you
are interested, you can try out pdns-remotebackend gem or pdns-remotebackend
python package, which support pipe backend as well.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: Digital signature
More information about the Pdns-users