Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 May 2012 06:56:11 GMT
From:      Michael <unexplained@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/167517: Git failed to resolve dns
Message-ID:  <201205020656.q426uBYn021897@red.freebsd.org>
Resent-Message-ID: <201205020700.q4270KhW055135@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167517
>Category:       ports
>Synopsis:       Git failed to resolve dns
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 02 07:00:20 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Michael
>Release:        FreeBSD 9.0 Release
>Organization:
>Environment:
FreeBSD local 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Git (https & http pull/push)will failed to resolve dns when curl compiled with c-ares binding.

Log :
    www# telnet github.com 80
    Trying 207.97.227.239...
    Connected to github.com.
    Escape character is '^]'.
    get index.html
    <html>
    <head><title>400 Bad Request</title></head>
    <body bgcolor="white">
    <center><h1>400 Bad Request</h1></center>
    <hr><center>nginx/1.0.13</center>
    </body>
    </html>
    Connection closed by foreign host.
    www# git clone https://github.com/nodejitsu/forever.git test
    Cloning into 'test'...
    error: Could not resolve host: github.com (Timeout while contacting DNS servers) while accessing https://github.com/nodejitsu/forever.git/info/refs
    fatal: HTTP request failed
    www# ping github.com
    PING github.com (207.97.227.239): 56 data bytes
    64 bytes from 207.97.227.239: icmp_seq=0 ttl=52 time=78.045 ms
    64 bytes from 207.97.227.239: icmp_seq=1 ttl=52 time=78.399 ms
    64 bytes from 207.97.227.239: icmp_seq=2 ttl=52 time=79.670 ms
    ^C
    --- github.com ping statistics ---
    3 packets transmitted, 3 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 78.045/78.705/79.670/0.698 ms

Affected version:
curl-7.24.0
c-ares-config-1.8.0
git-1.7.9.6
>How-To-Repeat:
Compile curl with c-ares binding, and recompile git. It will failed to resolve dns when using http & https protocol, while through git:// protocol it will be able to resolve and continue to pull or push.
>Fix:
Recompile curl without c-ares and recompile git.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205020656.q426uBYn021897>