cURL / Mailing Lists / curl-library / Single Mail

curl-library

dns resolver issues

From: Peter Vereshagin <peter_at_vereshagin.org>
Date: Sat, 26 Nov 2011 12:13:54 +0400

Hello.

Am having the same trouble as: http://curl.haxx.se/mail/lib-2011-02/0048.html

    $ wget http://www.ru
    --2011-11-26 12:05:39-- http://www.ru/
    Resolving www.ru (www.ru)... 194.87.0.50
    Connecting to www.ru (www.ru)|194.87.0.50|:80... ^C
    $ curl --verbose http://www.ru
    * Could not resolve host: www.ru (Could not contact DNS servers)
    * Couldn't resolve host 'www.ru'
    * Closing connection #0
    curl: (6) Could not resolve host: www.ru (Could not contact DNS servers)

with the difference that 'curl' begins to work if I uncomment 8.8.8.8:

    $ cat /etc/resolv.conf
    nameserver 127.0.0.1
    # nameserver 8.8.8.8

So just what can be wrong with my dns cache so curl declines from its usage?

    $ host 127.0.0.1
    1.0.0.127.in-addr.arpa domain name pointer avery.bogus.

Everything else 'just works'.

--
Peter Vereshagin <peter@vereshagin.org> (http://vereshagin.org) pgp: A0E26627 
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-11-26