<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Skydns on Miek Gieben</title>
    <link>https://miek.nl/tags/skydns/</link>
    <description>Recent content in Skydns on Miek Gieben</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>© Copyright 2007-2024 Miek Gieben</copyright>
    <lastBuildDate>Sun, 22 May 2016 21:32:35 +0100</lastBuildDate>
    <atom:link href="https://miek.nl/tags/skydns/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Debug Queries in CoreDNS with the etcd Middleware</title>
      <link>https://miek.nl/2016/may/22/debug-queries-in-coredns-with-the-etcd-middleware/</link>
      <pubDate>Sun, 22 May 2016 21:32:35 +0100</pubDate>
      <guid>https://miek.nl/2016/may/22/debug-queries-in-coredns-with-the-etcd-middleware/</guid>
      <description>&lt;p&gt;Let&amp;rsquo;s say you have some data in etcd and use &lt;a href=&#34;https://github.com/miekg/coredns&#34;&gt;CoreDNS&lt;/a&gt;&#xA;for service discovery. The Corefile looks like this:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-txt&#34; data-lang=&#34;txt&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;.:53 {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    etcd skydns.local {&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        stubzones&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        path /skydns&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        endpoint http://localhost:2379&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        upstream 8.8.8.8:53 8.8.4.4:53&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        debug  # &amp;lt;-- new, purpose of this blog&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;You test with &lt;code&gt;dig&lt;/code&gt; and you get the result below and you&amp;rsquo;re asking yourself wth is this happening?&#xA;If you have access to etcd directly you can use &lt;code&gt;etcdctl&lt;/code&gt;, if not you&amp;rsquo;re basically &lt;em&gt;stuck&lt;/em&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>SkyDNS in CoreDNS</title>
      <link>https://miek.nl/2016/march/24/skydns-in-coredns/</link>
      <pubDate>Thu, 24 Mar 2016 18:31:18 +0000</pubDate>
      <guid>https://miek.nl/2016/march/24/skydns-in-coredns/</guid>
      <description>&lt;p&gt;The &lt;a href=&#34;https://github.com/miekg/coredns/tree/master/middleware/etcd&#34;&gt;etcd middleware&lt;/a&gt; is shaping&#xA;up nicely. With the following &lt;code&gt;Corefile&lt;/code&gt; you already have a big chunk of the SkyDNS funcionality:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;.:1053 {&#xA;    errors&#xA;    etcd skydns.local&#xA;    proxy . 8.8.8.8:53&#xA;}&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Which says, run on port 1053, accept queries for &lt;em&gt;all&lt;/em&gt; zones, if the zone matches &lt;code&gt;skydns.local.&lt;/code&gt; go look&#xA;in etcd, if it doesn&amp;rsquo;t forward to GOOG. Multiple zones should work as well, but this is not tested&#xA;as of yet.&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s test this &lt;a href=&#34;https://github.com/skynetservices/skydns/blob/master/README.md&#34;&gt;with the examples from SkyDNS&#39;&#xA;README&lt;/a&gt;. Let&amp;rsquo;s add all the &lt;code&gt;rails&lt;/code&gt;&#xA;production sites. (Why does this use rails btw?)&lt;/p&gt;</description>
    </item>
    <item>
      <title>SkyDNS running live</title>
      <link>https://miek.nl/2014/june/28/skydns-running-live/</link>
      <pubDate>Sat, 28 Jun 2014 09:02:00 +0000</pubDate>
      <guid>https://miek.nl/2014/june/28/skydns-running-live/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://github.com/skynetservices/skydns&#34;&gt;SkyDNS&lt;/a&gt; is able to do DNSSEC. It generates&#xA;signatures and NSEC3 records on the fly. For authenticated denial of existence SkyDNS&#xA;uses &lt;a href=&#34;http://tools.ietf.org/html/rfc7129#appendix-B&#34;&gt;NSEC3 white lies&lt;/a&gt;, of course implementing&#xA;(and testing!) this isn&amp;rsquo;t completely trivial.&lt;/p&gt;&#xA;&lt;p&gt;To aid in debugging I&amp;rsquo;ve setup a live version of SkyDNS on &lt;code&gt;voordeur.atoom.net&lt;/code&gt;, under the name the&#xA;zone &lt;a href=&#34;http://dnssex.nl&#34;&gt;http://dnssex.nl&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;% dig +mul +noall +answer @voordeur.atoom.net soa skydns.dnssex.nl&#xA;skydns.dnssex.nl.    3600 IN SOA ns1.dns.skydns.dnssex.nl. hostmaster.skydns.local. (&#xA;                            1403942400 ; serial&#xA;                            28800      ; refresh (8 hours)&#xA;                            7200       ; retry (2 hours)&#xA;                            604800     ; expire (1 week)&#xA;                            60         ; minimum (1 minute)&#xA;                            )&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;To help getting DNSSEC support 100% working this zone has been delegated and has an DS record&#xA;in the parent zone. With &lt;code&gt;unbound-host&lt;/code&gt; you can see the validation status of this zone:&lt;/p&gt;</description>
    </item>
    <item>
      <title>SkyDNS version 2</title>
      <link>https://miek.nl/2014/june/08/skydns-version-2/</link>
      <pubDate>Sun, 08 Jun 2014 12:46:00 +0000</pubDate>
      <guid>https://miek.nl/2014/june/08/skydns-version-2/</guid>
      <description>&lt;p&gt;SkyDNS version 1 &lt;a href=&#34;http://blog.gopheracademy.com/skydns&#34;&gt;was announced some time ago&lt;/a&gt;, since then it&#xA;has seen some developments, which resulted in &lt;a href=&#34;https://github.com/skynetservices/skydns&#34;&gt;SkyDNS version 2&lt;/a&gt;. This new version uses &lt;a href=&#34;http://github.com/coreos/etcd&#34;&gt;Etcd&lt;/a&gt; as its backend. This blog post will walk you through the installation and shows how to use it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what&#34;&gt;What?!&lt;/h2&gt;&#xA;&lt;p&gt;SkyDNS(2) is a service discovery tool that utilizes the DNS to find hosts in a distributed environment. But&#xA;using DNS means &amp;ldquo;legacy&amp;rdquo; clients can be used. Want to know if you MariaDB cluster is still up?&#xA;&lt;code&gt;ping mariadb.skydns.local&lt;/code&gt; can be used for that. By default SkyDNS will use &lt;code&gt;skydns.local.&lt;/code&gt; as the domain&#xA;to anchor all names.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
