how to archieve this?
mysqld at yahoo.cn
Fri Dec 5 03:57:05 UTC 2008
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 -> 220.127.116.11".
If IP matchs condition B, return the ARR of "www.site.com -> 18.104.22.168".
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.
More information about the bind-users