Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 2010 19:44:09 -0700
From:      Drew Tomlinson <drew@mykitchentable.net>
To:        Thomas Keusch <fwd@bsd-solutions-duesseldorf.de>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: named - Is It Possible to Forward Requests for One Domain to Another Server?
Message-ID:  <4BFC8AF9.1010003@mykitchentable.net>
In-Reply-To: <20100525235819.GA8262@gothschlampen.com>
References:  <4BFC5D7C.1040001@mykitchentable.net> <20100525235819.GA8262@gothschlampen.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/25/2010 4:58 PM, Thomas Keusch wrote:
> On Tue, May 25, 2010 at 04:30:04PM -0700, Drew Tomlinson wrote:
>
> Hi Drew,
>
>    
>> In my home network, I have named running to resolve machines on my LAN.
>> It is also configured to forward requests to my ISP for all other queries.
>>
>> On another machine in my LAN, I used mpd to create a vpn connection to
>> my work and set appropriate routes so that any machine on my LAN can
>> access any machine at my work over the vpn (using mpd's nat function).
>> This works when accessing via the IP address.  Now I'm trying to get DNS
>> resolution for machines at work.
>>
>> Is there some way I can tell named to request DNS info for my work
>> domain from my work's DNS server available over the vpn?  Does this make
>> sense?
>>      
> Yes, it makes sense. What you're looking for is a "forward" type zone in
> named.conf, like
>
> zone "foobar.com" {
> 	type forward;
> 	forward only;
> 	forwarders { ip_of_work_dns_server; };
> };
>
> I'm not sure if I got the syntax 100% right.
>
> Also consider that this might interfere with the setup of the VPN, if
> you're using DNS names in the configuration, as named will not be able
> to resolve hosts in "foobar.com" without being able to reach
> ip_of_work_dns_server.
>    

Hi Thomas,

Thank you for your reply. That was what I needed.

Cheers,

Drew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BFC8AF9.1010003>