how to archieve this?

2008-12-04 Thread Ken DBA
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.




  
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: how to archieve this?

2008-12-04 Thread Ken DBA

--- On Fri, 12/5/08, Chris Buxton [EMAIL PROTECTED] wrote:


 
 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.
 

Thanks for the info.
I have checked the lbnamed. All my feel unsure is, how about its performance? 
Since it's written by Perl, not a compiled program.Has anyone used it in 
production environment? Thanks.

Ken.


  
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: how to archieve this?

2008-12-04 Thread Ken DBA



--- On Fri, 12/5/08, ivan jr sy [EMAIL PROTECTED] wrote:

 From: ivan jr sy [EMAIL PROTECTED]
 Subject: Re: how to archieve this?
 To: bind-users [EMAIL PROTECTED], [EMAIL PROTECTED]
 Date: Friday, December 5, 2008, 12:05 PM
 refer to 'split' DNS using views
 
 here's something:
 http://www.zytrax.com/books/dns/ch7/view.html
 

Yes I know Views.I was a DBA but these days I checked lots documents about 
Bind,it's really a great tool.
But views is not suitable to our application. Because views is working based on 
the different IP datas. We don't want the response is based on geography 
locations, but based on others, ie, which realserver has the best network 
connectivity.

Thanks.

Ken.


  
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: how to archieve this?

2008-12-04 Thread Ken DBA
Or, does Bind developer group provide commercial development for this purpose? 
We can pay for it.


--- On Fri, 12/5/08, Chris Buxton [EMAIL PROTECTED] wrote:

 From: Chris Buxton [EMAIL PROTECTED]
 Subject: Re: how to archieve this?
 To: bind-users bind-users@lists.isc.org
 Date: Friday, December 5, 2008, 1:10 PM
 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.
 



  
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


check Availability before sending response

2008-12-03 Thread Ken DBA
Hello,

Is there any way to make Bind check the server's availability before send back 
responses to clients?

ie, given the domain name www.site.com was pointed to 1.1.1.1 and 2.2.2.2 in 
Bind.
When a client query for www.site.com, Bind will check the health status for 
these two servers. If one is unavailable,Bind shouldn't direct client's 
requests to it.

I know F5's 3DNS can do it well.But rather than 3DNS, is there any free way for 
this purpose? Thanks.


Ken.





  
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users