named - Is It Possible to Forward Requests for One Domain to
Another Server?
Drew Tomlinson
drew at mykitchentable.net
Wed May 26 02:44:11 UTC 2010
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
More information about the freebsd-questions
mailing list