how to archieve this?
cbuxton at menandmice.com
Fri Dec 5 05:10:49 UTC 2008
Depending on the rules you intend to use, you may find that BIND simply
isn't suited to this purpose. You may need to write your own name server
implementation, using a set of F5 appliances, or something else.
If you do this, you are probably best off handling as much as you can
using BIND, and then delegating the special-handling names to your
special-purpose name server. That way, your special-purpose name server
need not be optimized enough to handle the whole load. Also, algorithms
can be simpler if your custom name server is only handling address
records and zone apex records (SOA and NS). (Not all special-purpose
name servers correctly handle apex records, but that's a bad thing.)
An example that you may find useful as a starting point is lbnamed. It's
old and probably has some bugs in its protocol handling, but it does
something along the lines that you're looking for.
Men & Mice
On Fri, 2008-12-05 at 11:57 +0800, Ken DBA wrote:
> We are running a commercial site. We want bind to execute some additional actions before the response, listed as below:
> 1) Client querys for www.site.com's ARR.
> 2) Bind gets client's IP, and calculate something based on this IP.
> 3) If IP matchs condition A, return the ARR of "www.site.com -> 184.108.40.206".
> If IP matchs condition B, return the ARR of "www.site.com -> 220.127.116.11".
> If IP matchs condition C, return Refused.
> How to implement this architecture on Bind? Does Bind provide some programming API like Apache's APR? Thanks in advance.
> bind-users mailing list
> bind-users at lists.isc.org
More information about the bind-users