<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Debug on Miek Gieben</title>
    <link>https://miek.nl/tags/debug/</link>
    <description>Recent content in Debug 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/debug/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>
  </channel>
</rss>
