[plug] split dns based on destination domain/cc
wdk@moriah
billk at iinet.net.au
Sat Aug 11 08:41:34 WST 2012
actually, that jogged a memory and I just created a zone called "com" in binds named.conf with forwarders setup - was looking far too deeply into the problem and missed the easy solution.
However, I will probably need dnsmasq when I get further into this project.
Thanks Again,
BillK
On 11/08/2012, at 8:23, "wdk at moriah" <billk at iinet.net.au> wrote:
> thanks Brad, I'll give that a go.
>
> BillK
>
>
>
> On 11/08/2012, at 8:06, Brad Campbell <brad at fnarfbargle.com> wrote:
>
>> On 11/08/12 07:59, Brad Campbell wrote:
>>> On 10/08/12 22:26, William Kenworthy wrote:
>>>> Not being a DNS expert I am looking for some ideas on how to solve a
>>>> challenge - I am running Bind as an internal caching nameserver with a
>>>> few private zones with iinet as upstream.
>>>>
>>>> I would like to do a split DNS where queries for .com go to a nameserver
>>>> in the US via a VPN, whilst anything else stays with iinet. Bind can
>>>> use views but they are based on client address matches, not domain as
>>>> far as I can see.
>>>>
>>>> Any ideas?
>>>>
>>> Yep. Put dnsmasq in front of bind and tell it to route all *.com queries to the specific nameserver you want.
>>> It's very flexible like that.
>>>
>> Sorry, not a lot of detail in that suggestion.
>>
>> Something like this.
>> Set up dnsmasq to listen on say port 5353. Have two (or three) server lines in the dnsmasq config like this
>>
>> server /com/1.2.3.4
>> server 2.3.4.5 #<- ns1.iinet.net.au
>> server 3.4.5.6 #<-ns2.iinet.net.au
>>
>> and make sure your bind forwarders is pointed at 127.0.0.1 port 5353
>>
>> When amnet was having issues with their dns, I set up dnsmasq to point to amnet, iinet and optus dns and then used the --all-servers option which sends the queries to all three in parallel. It then takes the first valid answer received and sends it down stream. It makes for _very_ fast resolution if one of those has the query cached.
>>
>>
>> _______________________________________________
>> PLUG discussion list: plug at plug.org.au
>> http://lists.plug.org.au/mailman/listinfo/plug
>> Committee e-mail: committee at plug.org.au
>> PLUG Membership: http://www.plug.org.au/membership
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://lists.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.org.au
> PLUG Membership: http://www.plug.org.au/membership
More information about the plug
mailing list