From owner-freebsd-questions@FreeBSD.ORG Thu Jul 21 13:41:42 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BCA116A421 for ; Thu, 21 Jul 2005 13:41:42 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (sigma.octantis.com.au [207.44.188.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1B9743D60 for ; Thu, 21 Jul 2005 13:41:37 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 20934 invoked from network); 21 Jul 2005 23:41:36 +1000 Received: from unknown (HELO ?192.168.13.3?) (202.59.110.3) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 21 Jul 2005 23:41:36 +1000 Message-ID: <42DFA603.5090402@meijome.net> Date: Thu, 21 Jul 2005 23:41:23 +1000 From: Norberto Meijome User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Marsh References: <40356a66050720120219f6dd92@mail.gmail.com> <42DF4CAB.4070306@meijome.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: DNS service with a SQL backend X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2005 13:41:42 -0000 Daniel Marsh wrote: > On Thu, 21 Jul 2005 15:20:11 +0800, Norberto Meijome >> On a similar thread, does anyone know of any dns server software that >> would serve different IPs depending on where the query/request comes >> from? >> i.e., - resolve www.mydomain.com to the IP of my server in AU for all >> clients querying from AU,JP and HK. Everyone else should get the IP >> for my server in US. > It may be possible to use BIND9 feature of allowing certain IP ranges > to only query certain zone files. ah yes, i had forgotten of this feature... but... > The only issue I foresee is having to have slightly different zone > names that you wish to serve for each IP range. I think that having different zone names would defeat the purpose of what I have in mind. The way I can imagine this working is that in the function (object?) where BIND resolves name to IP, it'd do a IP-to-country lookup, match that to a country-to-dns table and serve the appropiate IP. A fallback for all records should be provided so that only the special cases ('geotargetted' DNS resolutions) would have to be defined. I hope it makes sense. Beto