<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dns on The Gnu Pit</title><link>https://gnupit.net/dns/</link><description>Recent content in Dns on The Gnu Pit</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 16 Aug 2025 10:44:37 -0500</lastBuildDate><atom:link href="https://gnupit.net/dns/index.xml" rel="self" type="application/rss+xml"/><item><title>Dynamic DNS script to update Linode.com domain records</title><link>https://gnupit.net/posts/dyndns/</link><pubDate>Sat, 16 Aug 2025 10:44:37 -0500</pubDate><guid>https://gnupit.net/posts/dyndns/</guid><description>&lt;p&gt;My Macbook pro died and I decided a get a shiny new Windows laptop that I could convert to a Linux laptop. I partitioned the disk and created a dual boot with Linux Mint and Windows. Linux Mint installled like a champ and has been running happily ever since. I don&amp;rsquo;t think I have booted to Windows but twice in the last year.&lt;/p&gt;
&lt;p&gt;Moving to a new OS did mean that I needed to rewrite some of the scripts I use on a regular basis. One of the scripts updates DNS records at &lt;a href="https://www.linode.com"&gt;Linode&lt;/a&gt; with my current IPv4 and IPv6 WAN addresses and is run as a cron job. It&amp;rsquo;s a bash script I first wrote about &lt;a href="https://gnupit.net/posts/dyndns_linode/"&gt;in this entry&lt;/a&gt;. The updated script can be found in this &lt;a href="https://gist.github.com/troubleshooter/f47e999ea469820b8d12dec0ea280c1c"&gt;gist&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Script: Update Linode DNS Records with WAN IPs (Dynamic DNS)</title><link>https://gnupit.net/posts/dyndns_linode/</link><pubDate>Mon, 27 Nov 2017 10:30:24 -0500</pubDate><guid>https://gnupit.net/posts/dyndns_linode/</guid><description>&lt;p&gt;Either of these scripts will grab both the IPv4 and IPv6 (if any) addresses assigned to any WAN I&amp;rsquo;m behind, and, using Linode&amp;rsquo;s DNS API, will update my DNS records with same and log changes/errors using logger. In effect, it&amp;rsquo;s a homemade Dynamic DNS updater. Linode&amp;rsquo;s developing a new API so that&amp;rsquo;s why  two versions exist.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://bitbucket.org/troubleshooter/dns-record-updater-for-linode-dns/src/master/"&gt;Download from Bitbucket&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To use the script, you need:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;A Linode API key (for &lt;a href="https://www.linode.com/api/dns"&gt;version 3 of Linode&amp;rsquo;s DNS API&lt;/a&gt;) or Personal Access Token (for &lt;a href="https://developers.linode.com/v4/introduction"&gt;version 4 of Linode&amp;rsquo;s DNS API&lt;/a&gt;),&lt;/li&gt;
&lt;li&gt;the domain ID, and&lt;/li&gt;
&lt;li&gt;the resource (called record in v4) IDs of the DNS records you want to update.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The IDs don&amp;rsquo;t change, whether you&amp;rsquo;re using version 3 or version 4.&lt;/p&gt;</description></item></channel></rss>