title: etcd dns-discovery within cloud-init
body: <p>How can I bootstrap a CoreOS cluster with etcd peer dns discovery via cloud-init?</p>
  
  <p>I've only found examples using the discovery token service, but nothing for dns discovery. The documentation about this is really sparse, but it gets mentioned sometimes.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I search for a possibility to startup a cluster and to use DNS discovery for etcd like described here: <a href="https://github.com/coreos/etcd/blob/a4018f25c91fff8f4f15cd2cee9f026650c7e688/Documentation/clustering.md#dns-discovery" rel="nofollow">https://github.com/coreos/etcd/blob/a4018f25c91fff8f4f15cd2cee9f026650c7e688/Documentation/clustering.md#dns-discovery</a>. </p>
  
  <p>In theory I want to replace "discovery:" with something like "discover-srv:", but I don't know if this is possible by now with cloud-init. I've tried and failed so far.</p>