<?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: Illium</title>
    <description>The latest articles on DEV Community by Illium (@ilyap358).</description>
    <link>https://dev.to/ilyap358</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%2F4045677%2F2a2d233b-4473-413a-8c6a-f794a731a914.jpg</url>
      <title>DEV Community: Illium</title>
      <link>https://dev.to/ilyap358</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ilyap358"/>
    <language>en</language>
    <item>
      <title>I wanted free subdomains for my project. Ended up building my own registry in Python (and fighting DNS, Git and Cloudflare along the way)</title>
      <dc:creator>Illium</dc:creator>
      <pubDate>Fri, 24 Jul 2026 14:25:43 +0000</pubDate>
      <link>https://dev.to/ilyap358/i-wanted-free-subdomains-for-my-project-ended-up-building-my-own-registry-in-python-and-fighting-2hnl</link>
      <guid>https://dev.to/ilyap358/i-wanted-free-subdomains-for-my-project-ended-up-building-my-own-registry-in-python-and-fighting-2hnl</guid>
      <description>&lt;p&gt;I registered fluxcast.dev for my Linux casting project (&lt;a href="https://github.com/IlyaP358/fluxcast" rel="noopener noreferrer"&gt;FluxCast&lt;/a&gt;). One apex record was enough, the rest of the subdomains were just wasting away.&lt;/p&gt;

&lt;p&gt;Then I remembered is-a.dev. The idea of getting free subdomains through a simple GitHub PR looked so good that I decided to build my own version.&lt;br&gt;
"Sounds like an evening project," I thought.&lt;/p&gt;

&lt;p&gt;It wasn’t.&lt;/p&gt;
&lt;h3&gt;
  
  
  The validation rabbit hole
&lt;/h3&gt;

&lt;p&gt;First I needed proper validation. I wrote a bunch of checks using pytest. Blocking private IPs was easy with ipaddress, but catching duplicate keys in JSON was trickier, Python’s json.loads silently keeps only the last value. If I hadn’t caught that, someone could have hidden malicious records in a PR.&lt;/p&gt;
&lt;h3&gt;
  
  
  Production paranoia
&lt;/h3&gt;

&lt;p&gt;The real fluxcast.dev landing page was already live. I was terrified of accidentally deleting it with my sync script. So I made every managed record carry the tag managed-by:fluxcast-domains. The script only touches records with this label. Everything else is invisible to it.&lt;/p&gt;

&lt;p&gt;Of course I still managed to confuse &lt;strong&gt;Zone ID&lt;/strong&gt; with &lt;strong&gt;Account ID&lt;/strong&gt; in the Cloudflare dashboard. Then came the fun error: TypeError: Missing required argument: 'ttl'. Turns out the new Cloudflare Python SDK made it mandatory.&lt;/p&gt;
&lt;h3&gt;
  
  
  Git strikes back
&lt;/h3&gt;

&lt;p&gt;While studying is-a.dev I cloned their repo for reference… and somehow committed the entire .git folder as a submodule. On GitHub it looked completely broken. Regular git rm didn’t help. I had to rewrite history with a clean commit.&lt;/p&gt;
&lt;h3&gt;
  
  
  The final boss
&lt;/h3&gt;

&lt;p&gt;When I finally ran the real sync, it stayed "in queue" for minutes. Turns out GitHub had a small Actions hiccup &lt;em&gt;and&lt;/em&gt; my repo was private (private repos get lower priority). Made it public — problem solved.&lt;/p&gt;

&lt;p&gt;Then I created a public API endpoint on raw.fluxcast.dev via GitHub Pages. Opened it in the browser and got a big red "Connection is not secure" warning. For a few scary seconds I thought the domain was hijacked. Nope — just the certificate hadn’t propagated yet, and .dev is in the HSTS preload list.&lt;/p&gt;
&lt;h3&gt;
  
  
  Result
&lt;/h3&gt;

&lt;p&gt;Now anyone can get a free yourname.fluxcast.dev subdomain in minutes:&lt;/p&gt;

&lt;p&gt;JSON&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"owner"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; 
    &lt;/span&gt;&lt;span class="nl"&gt;"username"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"your-github-username"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; 
    &lt;/span&gt;&lt;span class="nl"&gt;"email"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"you@example.com"&lt;/span&gt;&lt;span class="w"&gt; 
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"records"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; 
    &lt;/span&gt;&lt;span class="nl"&gt;"CNAME"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"your-github-username.github.io"&lt;/span&gt;&lt;span class="w"&gt; 
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No accounts, no long reviews, no "is your project developer-related enough?" nonsense. As long as it’s not harmful — you’re good!&lt;/p&gt;

&lt;p&gt;The registry is very fresh. If you want a subdomain, the guide is here: &lt;strong&gt;&lt;a href="https://sub.fluxcast.dev" rel="noopener noreferrer"&gt;https://sub.fluxcast.dev&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Repo: &lt;strong&gt;&lt;a href="https://github.com/IlyaP358/fluxcast-domains" rel="noopener noreferrer"&gt;https://github.com/IlyaP358/fluxcast-domains&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Would love your feedback, bug reports, or ideas how to make it better. =]&lt;/p&gt;

</description>
      <category>python</category>
      <category>opensource</category>
      <category>github</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
