{"id":174,"date":"2007-11-02T11:42:38","date_gmt":"2007-11-02T09:42:38","guid":{"rendered":"http:\/\/daniel.haxx.se\/blog\/2007\/11\/02\/libcurl-dns-resolve-problems-on-leopard\/"},"modified":"2007-11-02T11:42:38","modified_gmt":"2007-11-02T09:42:38","slug":"libcurl-dns-resolve-problems-on-leopard","status":"publish","type":"post","link":"https:\/\/daniel.haxx.se\/blog\/2007\/11\/02\/libcurl-dns-resolve-problems-on-leopard\/","title":{"rendered":"libcurl DNS resolve problems on Leopard"},"content":{"rendered":"<p><a href=\"http:\/\/curl.haxx.se\/\"><img decoding=\"async\" src=\"http:\/\/daniel.haxx.se\/blog\/wp-content\/uploads\/2007\/09\/ds-libcurlicon.png\" title=\"libcurl\" alt=\"libcurl\" align=\"left\" border=\"0\" hspace=\"10\" vspace=\"5\" \/><\/a>I found this article by Jungle Dave titled <a href=\"http:\/\/blog.jungledisk.com\/2007\/10\/31\/leopard-dns-issues-and-work-around\/\">Leopard DNS Issues (and work-around)<\/a>, which explains how libcurl built with IPv6 support may cause trouble on MacOS X 10.5 (Leopard).<\/p>\n<p>According to him, that&#8217;s because <a href=\"http:\/\/en.wikipedia.org\/wiki\/Getaddrinfo\">getaddrinfo()<\/a> causes a <a href=\"http:\/\/en.wikipedia.org\/wiki\/SRV_record\">SRV lookup<\/a> to be made and that may be either slow or get discarded completely and thus cause trouble.<\/p>\n<p>This just adds another problem to getaddrinfo() resolves then, since we already have the problem with it when <a href=\"http:\/\/curl.haxx.se\/mail\/lib-2007-07\/0168.html\">resolving round-robin DNSes<\/a> since more or less every machine has a bad \/etc\/gai.conf setup that makes getaddrinfo() return a sorted list instead of the &#8220;random&#8221; one DNS admins in the wild would prefer the users to use&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I found this article by Jungle Dave titled Leopard DNS Issues (and work-around), which explains how libcurl built with IPv6 support may cause trouble on MacOS X 10.5 (Leopard). According to him, that&#8217;s because getaddrinfo() causes a SRV lookup to be made and that may be either slow or get discarded completely and thus cause &hellip; <a href=\"https:\/\/daniel.haxx.se\/blog\/2007\/11\/02\/libcurl-dns-resolve-problems-on-leopard\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">libcurl DNS resolve problems on Leopard<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-174","post","type-post","status-publish","format-standard","hentry","category-curl"],"_links":{"self":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":0,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"wp:attachment":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}