how to archieve this?

Ken DBA mysqld at yahoo.cn
Fri Dec 5 03:57:05 UTC 2008


Hello,

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 -> 1.1.1.1".
   If IP matchs condition B, return the ARR of "www.site.com -> 2.2.2.2".
   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.


Ken.




      



More information about the bind-users mailing list