Hi all,<div><br></div><div>When using a public DNS, there is huge catch for not playing so well with CDN. </div><div>Is there a way to preserve the CDN by asking dnsmasq to send multiple resolve</div><div>request to a few server instead of one, and return the IP with shorter route path.</div>
<div><br></div><div>It doesn't have to return immediately, but query the second one in another thread </div><div>(just saying,) and after the other is proved nearer then update the entry in the </div><div>cache. So that the client will get a better resolve result when the cache expires.</div>
<div><br></div><div>I knew this could be done by using `--server` option to assign DNS server for a list</div><div>of domains, but when there are thousands of domains need to be set this is a little </div><div>painful. So I'm seeking for a better solution.</div>
<div><br></div><div>Thanks,</div><div>Xiaoyi</div><div><br></div><div><br></div><div>PS: </div><div>I don't have much options other than using a public DNS, since internet in China </div><div>is highly censored, domains like <a href="http://google.com">google.com</a>, <a href="http://twitter.com">twitter.com</a> will be hijacked using </div>
<div>ISP provided DNS. For example:</div><div><br></div><div><div>root@OpenWrt:~# nslookup <a href="http://twitter.com">twitter.com</a> 202.106.196.115</div><div>Server: 202.106.196.115</div><div>Address 1: 202.106.196.115 <a href="http://linedns.bta.net.cn">linedns.bta.net.cn</a></div>
<div><br></div><div>Name: <a href="http://twitter.com">twitter.com</a></div><div>Address 1: 59.24.3.173</div><div>root@OpenWrt:~# nslookup <a href="http://twitter.com">twitter.com</a> 8.8.8.8</div><div>Server: 8.8.8.8</div>
<div>Address 1: 8.8.8.8 <a href="http://google-public-dns-a.google.com">google-public-dns-a.google.com</a></div><div><br></div><div>Name: <a href="http://twitter.com">twitter.com</a></div><div>Address 1: 199.59.150.7 <a href="http://r-199-59-150-7.twttr.com">r-199-59-150-7.twttr.com</a></div>
<div>Address 2: 199.59.149.230 <a href="http://www4.twitter.com">www4.twitter.com</a></div><div>Address 3: 199.59.150.39 <a href="http://r-199-59-150-39.twttr.com">r-199-59-150-39.twttr.com</a></div></div><div><br></div>