You are not logged in.

#1 2011-03-26 10:28:13

leniviy
Member
Registered: 2009-05-23
Posts: 177

DNS forwarder with >2 real DNS servers, querying them simultaneously

DNS forwarder with >2 real DNS servers, querying them simultaneously and ignoring "server can't find" errors

Hi. When I connect to VPN, my normal DNS isnt queried, and DNS given by VPN answers: "server can't find"

An extract from 'man resolv.conf'

If there are multiple servers, the resolver library queries them in the  order  listed.

I need another logic. All servers should be queried at the same time, and the soonest positive reply should be used.

The algorithm  used  is to try a name server, and if the query times out, try the next, until out of name servers, then repeat trying all  the  name  servers  until  a  maximum number of etries are made.

So, if I get "server can't find" error, the next DNS server not queried. I want the DNS forwarder to ignore such answers and wait for replies from other servers.

What software can do this? Maybe dnsmasq? I plan to add 'nameserver 127.0.0.1' to the top of my resolv.conf and configure my scripts to add other nameservers below.


Arch 64, xfce4

Offline

#2 2011-03-26 10:43:20

leniviy
Member
Registered: 2009-05-23
Posts: 177

Re: DNS forwarder with >2 real DNS servers, querying them simultaneously

All servers should be queried at the same time

--all-servers

dnsmasq: ignoring nameserver 127.0.0.1 - local interface

good.

How to tell dnsmasq to completely disable dhcp? List all interfaces like this?

no-dhcp-interface=eth0
no-dhcp-interface=tun0
no-dhcp-interface=vboxnet0
no-dhcp-interface=wlan0

Arch 64, xfce4

Offline

Board footer

Powered by FluxBB