def get_dns_hosts(context, network_ref):
 hosts = []
 for data in db.network_get_associated_fixed_ips(context, network_ref['id']):
  hosts.append(_host_dns(data))
 return '\n'.join(hosts)

def get_dns_hosts ( context , network_ref ) : hosts = [ ] for data in db . network_get_associated_fixed_ips ( context , network_ref [ 'id' ] ) : hosts . append ( _host_dns ( data ) ) return '\n' . join ( hosts )
get networks dns hosts in hosts format .