cURL / Mailing Lists / curl-library / Single Mail


Re: Re: [curl 4/5] dns: Support binding DNS to local interface/IP

From: Dan Fandrich <>
Date: Wed, 25 Aug 2010 18:59:42 -0700

On Thu, Aug 26, 2010 at 09:41:49AM +0800, Ning Dong wrote:
> Providing APIs to control DNS server is a great idea especially in China.
> In China, most people access internet with some stupid DNS servers provided by some more stupid telecomm companies.
> These DNS servers failed to resolve domain name frequently without any reason, but even worse, they response a IP of a telecomm server when resolving fail.
> So, I've already add such option in my curl lib.

For such a case it would make more sense to set the system-wide DNS server to
a working one instead of just fixing one libcurl-using app.

On a tangential note, DNS was designed to be globally valid, with any
recursive server able to resolve any DNS entry. It's only peoples' perversion
of DNS into disconnected resolving islands that this whole thread has come
up. It's too bad that this mess has to be solved piecemeal like this.

>>> Dan
List admin:
Received on 2010-08-26