[Dnsmasq-discuss] Ignore certain returned DNS response?
Simon Kelley
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 "60.191.124.236" here.
That's what --bogus-nxdomain is for
bogus-nxdomain=60.191.124.236
and when the ISP returns 60.191.124.236 it gets turned back into
NXDOMAIN. Magic!
Cheers,
Simon.
>
>>
>> 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
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
More information about the Dnsmasq-discuss
mailing list