This also sounds wrong: first check if one of the node has ```node[:dns][:master]``` set before picking a random one.