<?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 Fluka ~$_</title>
    <link>https://663e242a.lmersa.pages.dev/tags/dns/</link>
    <description>Recent content in Dns on Fluka ~$_</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Thu, 28 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://663e242a.lmersa.pages.dev/tags/dns/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Finally figuring out DNS and domain names</title>
      <link>https://663e242a.lmersa.pages.dev/obelisk/finally-figuring-out-dns/</link>
      <pubDate>Thu, 28 May 2026 00:00:00 +0000</pubDate>
      <guid>https://663e242a.lmersa.pages.dev/obelisk/finally-figuring-out-dns/</guid>
      <description>&lt;p&gt;One reason why I wanted to have a public personal website, (other than sharing thoughts and doing the opposite of gatekeeping), is to show it off, as some sort of portfolio: The things I learned over the years and the things I can do.&lt;/p&gt;
&lt;p&gt;Now as a network engineer, or as any kind of engineer who works with the internet, having the right domain name was a big deal. You can say alot from the domain name of a website. I just couldn&amp;rsquo;t bring myself to have a generic one. Now of course setting up a creative domain name is important, but I believe that knowing how to set it up matters even more.&lt;/p&gt;</description>
      <content>&lt;p&gt;One reason why I wanted to have a public personal website, (other than sharing thoughts and doing the opposite of gatekeeping), is to show it off, as some sort of portfolio: The things I learned over the years and the things I can do.&lt;/p&gt;
&lt;p&gt;Now as a network engineer, or as any kind of engineer who works with the internet, having the right domain name was a big deal. You can say alot from the domain name of a website. I just couldn&amp;rsquo;t bring myself to have a generic one. Now of course setting up a creative domain name is important, but I believe that knowing how to set it up matters even more.&lt;/p&gt;
&lt;p&gt;And to set it you obviously need to know how it works. For the longest time, I knew some details about the functioning of this service but I feel like I never fully grasped the concept, so yay to a new learning opportunity :&lt;/p&gt;
&lt;h2 id=&#34;computers-dont-speak-in-names&#34;&gt;Computers don&amp;rsquo;t speak in names&lt;/h2&gt;
&lt;p&gt;Every device connected to the internet has a numeric address called an IP address: something like &lt;code&gt;192.0.2.45&lt;/code&gt; (or a longer one like &lt;code&gt;2001:db8::1&lt;/code&gt; for the newer IPv6 system). That number is how machines actually find each other. It&amp;rsquo;s the equivalent of a street address: precise, but not something you&amp;rsquo;d want to memorize for every place you visit.&lt;/p&gt;
&lt;p&gt;Humans are bad at remembering numbers and great at remembering names. So we invented a friendlier layer on top: the domain name. &lt;code&gt;example.com&lt;/code&gt; is just a human-readable label that points to an IP address. The name is for you; the number is for the machines.&lt;/p&gt;
&lt;p&gt;The problem is obvious: when you type a name, something has to translate it into the number. That something is DNS.&lt;/p&gt;
&lt;h2 id=&#34;dns-the-internets-phone-book&#34;&gt;DNS: the internet&amp;rsquo;s phone book&lt;/h2&gt;
&lt;p&gt;DNS stands for the Domain Name System, and the classic way to describe it is as the internet&amp;rsquo;s phone book. You know a person&amp;rsquo;s name; you look them up to get their phone number. You know a website&amp;rsquo;s name; DNS looks it up to get its IP address.&lt;/p&gt;
&lt;p&gt;Except there&amp;rsquo;s no single giant phone book sitting on one computer somewhere. It would be too big, too slow, and a single point of failure for the entire internet. Instead, DNS is distributed: the information is spread across a hierarchy of servers around the world, each responsible for one small piece. When you make a request, those pieces get assembled on the fly.&lt;/p&gt;
&lt;p&gt;Here&amp;rsquo;s the relay race that happens when you visit a site for the first time.&lt;/p&gt;
&lt;h2 id=&#34;the-journey-of-a-single-lookup&#34;&gt;The journey of a single lookup&lt;/h2&gt;
&lt;p&gt;Imagine you type &lt;code&gt;choumicha.ma&lt;/code&gt; looking for a quick recipe. Your computer needs the IP address, and it asks a series of helpers:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;The resolver.&lt;/strong&gt; Your request first goes to a &lt;em&gt;DNS resolver&lt;/em&gt;, usually run by your internet provider (or a public one like Cloudflare&amp;rsquo;s &lt;code&gt;1.1.1.1&lt;/code&gt;). Think of the resolver as a helpful librarian who does all the legwork for you. It doesn&amp;rsquo;t know the answer yet, but it knows who to ask.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The root servers.&lt;/strong&gt; The resolver starts at the top. It asks a &lt;em&gt;root server&lt;/em&gt;: &amp;ldquo;Where do I find things ending in &lt;code&gt;.ma&lt;/code&gt;?&amp;rdquo; The root server doesn&amp;rsquo;t know &lt;code&gt;choumicha.ma&lt;/code&gt; specifically, but it knows who manages the entire &lt;code&gt;.ma&lt;/code&gt; neighborhood, and points the resolver there.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The TLD servers.&lt;/strong&gt; &lt;code&gt;.com&lt;/code&gt; is a &lt;strong&gt;top-level domain&lt;/strong&gt; (TLD) — the last part of the address. Other TLDs include &lt;code&gt;.org&lt;/code&gt;, &lt;code&gt;.net&lt;/code&gt;, and country codes like &lt;code&gt;.pl&lt;/code&gt; or our beloved &lt;code&gt;.ma&lt;/code&gt;. The resolver asks the &lt;code&gt;.ma&lt;/code&gt; server: &amp;ldquo;Who&amp;rsquo;s in charge of &lt;code&gt;choumicha.ma&lt;/code&gt;?&amp;rdquo; The &lt;code&gt;.ma&lt;/code&gt; server replies with the address of that domain&amp;rsquo;s authoritative servers.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The authoritative server.&lt;/strong&gt; This is the final stop — the server that holds the real, official records for &lt;code&gt;choumicha.ma&lt;/code&gt;. The resolver asks, &amp;ldquo;What&amp;rsquo;s the IP address?&amp;rdquo; and this server gives the definitive answer: &lt;code&gt;192.0.2.45&lt;/code&gt;.
The resolver hands that number back to your browser, your browser connects to that IP, and the page loads.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;It sounds like a lot, but it usually finishes in milliseconds. And it gets even faster after the first visit, thanks to caching: the resolver (and your own computer) remembers the answer for a while, so it doesn&amp;rsquo;t have to run the whole race every single time. How long it remembers is controlled by a setting called TTL (time to live), measured in seconds.&lt;/p&gt;
&lt;h2 id=&#34;the-records-that-make-it-all-work&#34;&gt;The records that make it all work&lt;/h2&gt;
&lt;p&gt;The &amp;ldquo;official records&amp;rdquo; stored on that authoritative server are called DNS records. Each one is a small instruction. You don&amp;rsquo;t need to know all of them, but a handful cover almost everything you&amp;rsquo;ll ever do:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A record&lt;/strong&gt; — points a domain to an IPv4 address (the &lt;code&gt;192.0.2.45&lt;/code&gt; kind). This is the most common record. &amp;ldquo;&lt;code&gt;example.com&lt;/code&gt; lives at this number.&amp;rdquo;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;AAAA record&lt;/strong&gt; — the same idea, but for the newer IPv6 addresses. (Yes, four A&amp;rsquo;s.)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;CNAME record&lt;/strong&gt; — points one name at another name instead of an IP. Useful for saying &amp;ldquo;&lt;code&gt;www.fluka.com&lt;/code&gt; is just an alias for &lt;code&gt;flukamolsluka.com&lt;/code&gt;.&amp;rdquo; Whatever the target resolves to, the alias follows.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;MX record&lt;/strong&gt; — tells the world which server handles &lt;strong&gt;email&lt;/strong&gt; for your domain. Without it, mail sent to &lt;code&gt;you@example.com&lt;/code&gt; has nowhere to go.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;setting-up-your-own-domain-step-by-step&#34;&gt;Setting up your own domain, step by step&lt;/h2&gt;
&lt;p&gt;Now the practical part. Going from &amp;ldquo;I want a website&amp;rdquo; to &amp;ldquo;my domain points to it&amp;rdquo; is really three steps.&lt;/p&gt;
&lt;h3 id=&#34;step-1-register-the-name&#34;&gt;Step 1: Register the name&lt;/h3&gt;
&lt;p&gt;You buy a domain through a registrar: a company accredited to sell domain names (popular ones include Cloudflare, Namecheap&amp;hellip;). You&amp;rsquo;re not really buying the name forever; you&amp;rsquo;re renting it, usually a year at a time. As long as you keep renewing, it&amp;rsquo;s yours. Registering simply records, in the global system, that this name belongs to you.&lt;/p&gt;
&lt;h3 id=&#34;step-2-decide-who-runs-your-dns&#34;&gt;Step 2: Decide who runs your DNS&lt;/h3&gt;
&lt;p&gt;This is the step people find most confusing, so here&amp;rsquo;s the key idea: your registrar and your DNS host don&amp;rsquo;t have to be the same company.&lt;/p&gt;
&lt;p&gt;When you register a domain, the registrar sets its nameservers: records that say &amp;ldquo;go here for the real answers.&amp;rdquo; By default they point at the registrar&amp;rsquo;s own DNS service, which is usually fine. But you can change them to point at a different provider (for example, putting your domain on Cloudflare so you can use its network and dashboard). Changing nameservers is like telling the post office which branch holds your mail forwarding instructions. It&amp;rsquo;s the highest-level switch, and everything below it follows.&lt;/p&gt;
&lt;p&gt;So you have two valid paths:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Keep it simple: manage your DNS records right in your registrar&amp;rsquo;s dashboard.&lt;/li&gt;
&lt;li&gt;Move your DNS elsewhere: update the nameservers to your chosen DNS provider, then manage records there.
Either way, the next step is the same.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;step-3-add-the-records-that-point-to-your-site&#34;&gt;Step 3: Add the records that point to your site&lt;/h3&gt;
&lt;p&gt;Now you tell DNS where your website actually lives. If your host gave you an IP address, you create an A record pointing your domain at it. If your host gave you a name to point at instead (common with platforms like Cloudflare Pages, Netlify, or GitHub Pages), you create a CNAME pointing at that name.&lt;/p&gt;
&lt;p&gt;A typical setup for a small site looks like this:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An A record (or CNAME) for &lt;code&gt;yourdomain.com&lt;/code&gt; → your host.&lt;/li&gt;
&lt;li&gt;A CNAME for &lt;code&gt;www.yourdomain.com&lt;/code&gt; → &lt;code&gt;yourdomain.com&lt;/code&gt;, so both the bare name and the &lt;code&gt;www.&lt;/code&gt; version work.&lt;/li&gt;
&lt;li&gt;An MX record and some TXT records if you&amp;rsquo;re setting up email.
And here&amp;rsquo;s the beautiful part: subdomains are free and unlimited. Want &lt;code&gt;blog.yourdomain.com&lt;/code&gt; or &lt;code&gt;shop.yourdomain.com&lt;/code&gt;? Each is just another record under the same domain, pointing wherever you like — even at completely different services. You own the entire namespace.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;step-4-wait-for-propagation&#34;&gt;Step 4: Wait for propagation&lt;/h3&gt;
&lt;p&gt;After you save a record, it isn&amp;rsquo;t always visible everywhere on Earth instantly. Because of all that caching we mentioned, resolvers around the world may still be holding old information until its TTL expires. This delay is called propagation, and it can take anywhere from a few minutes to a day, though it&amp;rsquo;s usually quick. If your new site isn&amp;rsquo;t loading right away, this is almost always why — patience, not a mistake.&lt;/p&gt;
&lt;h2 id=&#34;putting-it-all-together&#34;&gt;Putting it all together&lt;/h2&gt;
&lt;p&gt;Step back and the whole system is elegant. A domain name is a human-friendly label. DNS is the distributed lookup system that translates that label into the numeric address machines use. Records are the individual instructions, nameservers decide who&amp;rsquo;s in charge of those records, and a registrar is just where you rent the name in the first place.&lt;/p&gt;
&lt;p&gt;Setting up a domain, then, is really just: rent the name, decide who manages its DNS, and add a couple of records pointing at wherever your site lives. The first time you do it, the propagation wait makes it feel uncertain. By the second or third time, it&amp;rsquo;s a five-minute job — and you&amp;rsquo;ll understand exactly what every switch does.&lt;/p&gt;
</content>
    </item>
    
  </channel>
</rss>
