<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: FyarIo</title>
    <description>The latest articles on DEV Community by FyarIo (@isaiarfyar).</description>
    <link>https://dev.to/isaiarfyar</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4216758%2F624d32a4-3ae8-48b0-b6ec-6982c8e9463f.jpg</url>
      <title>DEV Community: FyarIo</title>
      <link>https://dev.to/isaiarfyar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/isaiarfyar"/>
    <language>en</language>
    <item>
      <title>One IPv6 address still serves the old build. Which one?</title>
      <dc:creator>FyarIo</dc:creator>
      <pubDate>Mon, 30 Nov 2026 11:18:58 +0000</pubDate>
      <link>https://dev.to/isaiarfyar/one-ipv6-address-still-serves-the-old-build-which-one-53p5</link>
      <guid>https://dev.to/isaiarfyar/one-ipv6-address-still-serves-the-old-build-which-one-53p5</guid>
      <description>&lt;p&gt;The homepage has a new &lt;strong&gt;Browse catalog&lt;/strong&gt; button. Someone on mobile sends a screenshot with the old &lt;strong&gt;Shop&lt;/strong&gt; button. You try the same URL over IPv6, see the new button, and start writing back that the migration looks fine. There’s one detail worth checking first: how many IPv6 addresses can that hostname return?&lt;/p&gt;

&lt;p&gt;A single successful connection tells you which build answered at one address. A second AAAA record can still point to a machine that missed the cutover. Here’s how to catch that case without changing DNS while people are using the site.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get something more useful than two 200s
&lt;/h2&gt;

&lt;p&gt;Use the final hostname from the affected page, after redirects. The following commands are for a shell on a machine with direct IPv4 and IPv6 connectivity. If your requests go through an outbound HTTP proxy, the peer you see may be the proxy. Replace the example hostname with one you operate.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;site&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;catalog.example.test
&lt;span class="nv"&gt;url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://$site/build-id.txt"&lt;/span&gt;
&lt;span class="nv"&gt;fmt&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'\nHTTP %{http_code} peer=%{remote_ip}\n'&lt;/span&gt;

curl -4 -sS --max-time 10 -w &lt;span class="s2"&gt;"$fmt"&lt;/span&gt; &lt;span class="s2"&gt;"$url"&lt;/span&gt;
curl -6 -sS --max-time 10 -w &lt;span class="s2"&gt;"$fmt"&lt;/span&gt; &lt;span class="s2"&gt;"$url"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here, each deployment ships its own small &lt;code&gt;build-id.txt&lt;/code&gt;. Use an existing build marker if you have one, or compare a distinctive line in the HTML itself. A health check that returns &lt;code&gt;OK&lt;/code&gt; on every deployment can’t tell you which one served the page.&lt;/p&gt;

&lt;p&gt;In a local HTTPS test, two listeners served the same hostname with a certificate valid for it. Both returned 200. The IPv4 response contained &lt;code&gt;green-18&lt;/code&gt;, while the IPv6 response contained &lt;code&gt;blue-17&lt;/code&gt;. That’s a useful distinction when handling a reader’s report: an old response body reproduces the symptom, whereas an IPv6 timeout gives you no page to compare.&lt;/p&gt;

&lt;h2&gt;
  
  
  List the addresses before picking a suspect
&lt;/h2&gt;

&lt;p&gt;These two screenshots are live DNS lookups of &lt;code&gt;example.com&lt;/code&gt; through Google Public DNS. Look at the two &lt;code&gt;data&lt;/code&gt; entries in each answer. They illustrate how one name can return several addresses per family. The migration example uses a separate hostname.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp6zw7mt5lota2qtr7ylh.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp6zw7mt5lota2qtr7ylh.jpeg" alt="Google Public DNS A answer for example.com with two IPv4 addresses" width="620" height="282"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3ihstrpugeyaoz9llr7i.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3ihstrpugeyaoz9llr7i.jpeg" alt="Google Public DNS AAAA answer for example.com with two distinct IPv6 addresses" width="620" height="282"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dns.google/query?name=example.com" rel="noopener noreferrer"&gt;Repeat the A lookup&lt;/a&gt; · &lt;a href="https://dns.google/query?name=example.com&amp;amp;rr_type=AAAA" rel="noopener noreferrer"&gt;Repeat the AAAA lookup&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For your own hostname, query the resolver on the affected network first. Then check the same record on each authoritative server for the zone. If the answer points to a CNAME, follow the target into the zone that publishes its addresses.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;dig &lt;span class="s2"&gt;"$site"&lt;/span&gt; AAAA +noall +answer

&lt;span class="c"&gt;# Replace this with an authoritative server for your zone.&lt;/span&gt;
dig @ns1.example.test &lt;span class="s2"&gt;"$site"&lt;/span&gt; AAAA +norecurse +noall +comments +answer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An authoritative answer should carry the &lt;code&gt;aa&lt;/code&gt; flag. If all authoritative servers have the new set but the affected resolver still lists an old address, note its remaining TTL and retest there. If the authoritative answers still include both addresses, you can test what each one serves right now.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pin the address, keep the hostname
&lt;/h2&gt;

&lt;p&gt;For a directly hosted site, put the actual IPv6 addresses from the answer into this loop. The two below are reserved for documentation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="k"&gt;for&lt;/span&gt; ip &lt;span class="k"&gt;in&lt;/span&gt; 2001:db8::10 2001:db8::20&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  curl -6 -sS --max-time 10 --resolve &lt;span class="s2"&gt;"$site:443:[$ip]"&lt;/span&gt; \
    -w &lt;span class="s2"&gt;"$fmt"&lt;/span&gt; &lt;span class="s2"&gt;"$url"&lt;/span&gt;
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The URL stays the same, so curl sends the intended TLS server name and checks the certificate for that hostname. If one peer serves the current build and the other serves the old one, compare both addresses with the hosting handover. A retired address still in the zone calls for a DNS correction. An address assigned to the new service that returns the old build calls for a look at the virtual host or deployment behind it. &lt;a href="https://everything.curl.dev/usingcurl/connections/name.html#provide-a-custom-ip-address-for-a-name" rel="noopener noreferrer"&gt;How curl handles &lt;code&gt;--resolve&lt;/code&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If a CDN fronts the site, the public addresses usually belong to its edge. A stale response there is a reason to check the cache and origin selection for the affected URL. It’s too little evidence to remove an edge address from DNS.&lt;/p&gt;

&lt;p&gt;After the fix, drop &lt;code&gt;--resolve&lt;/code&gt;, rerun the ordinary requests from the network that saw the old page, and open the original link. The build marker and the homepage may have different cache rules. Seeing &lt;strong&gt;Browse catalog&lt;/strong&gt; at the URL from the screenshot is the check that closes the reader’s report.&lt;/p&gt;

</description>
      <category>dns</category>
      <category>ipv6</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
