Re: How disable powerdns in microbosh and bosh ?

Pablo Alonso Rodriguez <palonsoro@...>


If you are trying to unset dns properties, maybe this might work (at least,
DNS properties should not be set at director.yml):

dns: null

However, as far as I have seen, microbosh DNS is set as the last entry at
resolv.conf. According to the MAN page (, it should be the
last server tried. Furthermore, if all the servers fail, all the servers
are retried again in the same order.

Thus, I think that having microbosh in the last place of resolv.conf should
not disturb you even if microbosh VMs crashes, provided that you have set
other DNS servers in the networks section of your deployment manifest. The
DNS servers that you provide should be tried in the first place and should
be retried if there is a temporary network issue.

2015-06-17 13:22 GMT+02:00 Guillaume Berche <bercheg(a)>:


I understand that by default the micro-bosh has DNS enabled (i.e. hosts a
powerDNS servers that gets injected by default in all VMs it manages). If
the dns entry [1] is specified, additional DNS resolvers will be added to
/etc/resolv.conf and the micro bosh powerDNS will remain (at the end as the
last fallback ?) When micro-bosh is only used to instanciate a multi-vm
bosh instance which does not rely on FQDN but rather on IP addresses, then
it would make sense to disable DNS on microbosh to avoid bosh failing to
resolve Iaas FQDN in case microbosh is down.

On a multi-vm bosh cluter, it seems the power DNS would be disabled if any
of the necessary dns property is missing [3], even through spec file [2]
isn't explicit about it.

I however wonder what's the best way to disable the DNS job in the
micro-bosh, as the dns properties are typically not set in the microbosh
manifest. Searching through forums I only found [4] mentionning specifying
the "dynamic" type for the micro-bosh network implicitly disables the
powerDNS job. I don't understand why there is a link between the two. Is
there a more explict way to configure micro-bosh DNS ? Where are director
properties [2] default values for micro set, and can they be overriden from
the manifest file ? I tried assigning an empty dns.adress in the micro bosh
manifest, but the bosh micro cli did not pick the modification "Will skip
deploy due to no changes". Am I on the right track ?

#Define an empty DNS address to disable the microbosh power DNS
running by default.

I tried looking at the concourse pipeline config and resources to get
inspiration but could not find related bosh config yet.

Thanks in advance,


*MicroBOSH has a nameserver component called powerDNS. If, after you
deploy MicroBOSH, you use it deploy other software, MicroBOSH will create
VMs as it deploys that software. VMs that MicroBOSH creates use the
powerDNS on their parent VM to resolve IP addresses.*

cf-bosh mailing list

Join to automatically receive all group messages.