<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Dns on YT Por</title><link>https://www.ytpor.com/tags/dns/</link><description>Recent content in Dns on YT Por</description><generator>Hugo -- 0.161.1</generator><language>en-us</language><lastBuildDate>Wed, 20 May 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://www.ytpor.com/tags/dns/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker Hub pulls failing due to IPv6 DNS</title><link>https://www.ytpor.com/2026/05/docker-hub-pulls-failing-ipv6-dns/</link><pubDate>Wed, 20 May 2026 10:00:00 +0800</pubDate><guid>https://www.ytpor.com/2026/05/docker-hub-pulls-failing-ipv6-dns/</guid><description>&lt;p&gt;While on Ubuntu servers, image pulls from Docker Hub kept failing with the following error:&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;Error response from daemon: Get &amp;#34;https://registry-1.docker.io/v2/&amp;#34;: dial tcp
[2600:1f18:2148:bc00:c80c:3676:30dd:a616]:443: connect: cannot assign requested address
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Running &lt;code&gt;ip addr show&lt;/code&gt; confirmed the host has no IPv6 addresses on any interface. The server&amp;rsquo;s network does not route IPv6.&lt;/p&gt;
&lt;p&gt;The culprit is Docker&amp;rsquo;s Go runtime. Unlike most system programs, Docker does not use the C library&amp;rsquo;s &lt;code&gt;getaddrinfo()&lt;/code&gt; for DNS - it has its own pure Go resolver. When DNS returns both A and AAAA records for &lt;code&gt;registry-1.docker.io&lt;/code&gt;, Go prefers the IPv6 address. The kernel immediately returns &lt;code&gt;EADDRNOTAVAIL&lt;/code&gt; because there is no IPv6 source address to bind, and the connection fails before any packet reaches the network.&lt;/p&gt;</description></item></channel></rss>