title: how can I list all kubernetes DNS records?
body: <p>I have kube-dns running in a (bare metal) cluster. I know that it works, as I can <a href="https://github.com/kubernetes/dns/blob/master/docs/specification.md" rel="noreferrer">interpolate a service to a name</a> I've created and get a host entry:</p>
  
  <pre><code>$ host elk-service-headless.default.svc.cluster.local
  elk-service-headless.default.svc.cluster.local has address 10.42.0.151
  elk-service-headless.default.svc.cluster.local has address 10.42.0.152
  elk-service-headless.default.svc.cluster.local has address 10.42.0.153
  (...)
  </code></pre>
  
  <p>What I can't figure out how to do is to list all of the records that kube-dns is holding. I've tried the <a href="https://stackoverflow.com/questions/19322962/how-can-i-list-all-dns-records">standard DNS tricks</a> like dig and <code>host -l</code> and can't get them. But in any case, there must be a way to do this from Kubernetes itself. I tried inspecting ConfigMaps and didn't find what I'm looking for.</p>