Re: how to archieve this?
Have you considered dynamically regenerating view definitions based on your rules? If the results of your rules are stable for minutes at a time, it may work. Regards, Chris. 2008/12/5 Ken DBA [EMAIL PROTECTED] --- On Fri, 12/5/08, Kevin Darcy [EMAIL PROTECTED] wrote: From: Kevin Darcy [EMAIL PROTECTED] Subject: Re: how to archieve this? To: bind-users bind-users@lists.isc.org Date: Friday, December 5, 2008, 2:17 PM If you have money to spend, just buy a commercial load-balancing solution. I checked F5's 3DNS, it's about $40,000.Too expensive to us.:-( ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
how to archieve this?
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?
refer to 'split' DNS using views here's something: http://www.zytrax.com/books/dns/ch7/view.html in a nutshell.. you have to - have 2 views, same zone per view - either have two different zone files... and maintain it separately. (or you may have two zone files and segregate the differences, while those RRs that are common can be on another file referred by an include statement) --- On Fri, 12/5/08, Ken DBA [EMAIL PROTECTED] wrote: From: Ken DBA [EMAIL PROTECTED] Subject: how to archieve this? To: bind-users [EMAIL PROTECTED] Date: Friday, December 5, 2008, 4:57 PM 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 ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: how to archieve this?
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. Chris Buxton Men Mice On Fri, 2008-12-05 at 11:57 +0800, Ken DBA wrote: 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 ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: how to archieve this?
--- 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?
--- 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?
While I have no experience with the performance of lbnamed, I have heard that the resolving name servers used by OpenDNS run a name server program written in Perl. (I forget the name of the package.) Performance is a problem that can be overcome with optimizations and by throwing more hardware at the problem. Chris Buxton Men Mice On Fri, 2008-12-05 at 13:54 +0800, Ken DBA wrote: --- 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?
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
Re: how to archieve this?
If you have money to spend, just buy a commercial load-balancing solution. - Kevin Ken DBA wrote: 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 ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users