[Dnsmasq-discuss] Ignore certain returned DNS response?
simon at thekelleys.org.uk
Tue Oct 14 18:22:58 BST 2014
On 10/10/14 03:28, microcai wrote:
> 在 2014年10月8日 星期三 20:13:33，Glen Huang 写道：
>> Is it possible to ask dnsmasq to ignore DNS responses whose records match a
>> certain list of ip, and keep waiting for another response?
>> The rational behind this is that in China, when querying a domain like
>> youtube.com or twitter.com, a fake ip is quickly returned, fooling dnsmasq
>> to discard the genuine response that comes after it. Luckily the returned
>> fake ips are of a limited set. So it’s relatively easy to distinguish such
>> bogus responses.\
> Yet Another reason is the so-called 114la. when you request an Domain name
> that do not exist, the ISP will return an fake webserver and you'll have to
> see advertisments. That sucks.
> the fake server address is always the same "184.108.40.206" here.
That's what --bogus-nxdomain is for
and when the ISP returns 220.127.116.11 it gets turned back into
>> I can’t find an option which does this in the man page. So this might be a
>> feature request. I guess it should work like the bogus-nxdomain option, but
>> instead of treating the ip as nxdomain, dnsmasq would ignore it, and keep
>> wait for another response.
>> I’m willing to take a stab at this feature (it could take some time though,
>> since I’m not familiar with the internels of dnsmasq). But before doing so,
>> I want to make sure that I didn’t missing any option that already does that
>> and this feature does belong to dnsmasq.
>> Thank you.
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
More information about the Dnsmasq-discuss