redirect query for specific hosts within a domain

Chris Cohen kildau-ml at gmx.de
Fri Oct 17 20:45:24 UTC 2008


Chris Buxton wrote:
> On Oct 17, 2008, at 12:25 PM, Chris Cohen wrote:
>> Chris Buxton wrote:
>>> On Oct 17, 2008, at 11:46 AM, Chris Cohen wrote:
>>>> Hi,
>>>>
>>>> let's say I have a domain my server is authoritative for, with
>>>> something
>>>> like:
>>>>
>>>> $ORIGIN example.org
>>>> [...]
>>>> statichost1	IN	A	10.0.0.1
>>>> statichost2	IN	A	10.1.0.2
>>>> dynamichost1	IN	[lookup this hostname on another server]
>>>>
>>>> the $otherserver is not under my controle, so is it possible to tell
>>>> bind to redirect querys to a specific host to another server?
>>>>
>>>> --  
>>>> thanks
>>>> chris
>>>>
>>>
>>> That depends...
>>>
>>> - Is the other server going to host a zone named
>>> dynamichost1.example.org? Or will it host example.org?
>> It also hosts example.org and sadly I can't change that.
>>
>>> - What do you want your server to send in response to iterative
>>> queries? An answer, or a referral?
>> An answer.
> 
> Can't be done.
> 
> In order for your server to give an answer, reliably, when sent an  
> iterative query (as opposed to a recursive query), it would need to  
> host the zone that contains the answer. But there is a name clash -  
> the name you want is contained in a zone that matches your local zone.
> 
> Now if only client machines are querying your server (and thus you  
> only receive recursive queries), and you add the forward zone, then  
> you don't need a local (slave) copy of the zone. But you still have  
> the name clash.
> 
> Is there some way you can rename your zone to be a different name,  
> either unrelated or a child of the other zone?

Sadly it is not. But your example with the ns line works well enough for 
me. I was just scared by the Servfails 'host' gave me.

-- 
Thank you
Chris


More information about the bind-users mailing list