How to configure dnsmasq to forward multiple DNS servers?

Posted by xiaoyi on Server Fault See other posts from Server Fault or by xiaoyi
Published on 2012-11-28T10:30:00Z Indexed on 2012/11/28 11:05 UTC
Read the original article Hit count: 241

Filed under:
|

I'm now using public DNS over VPN to avoid some DNS pollution in China. But this come with a price that I can't take advantage of CDN.

Is there a way to configure dnsmasq and let it query both DNS servers, both public one and ISP one, and return the IP with a lower metric?

I knew it could be done by using server=/domain/server directive to assign a DNS server for a certain domain, but the problem is there are hundreds of them. So I have to figure out something generic.

Thanks in advance.

© Server Fault or respective owner

Related posts about dns

Related posts about dnsmasq