def get_resolv_conf(interfaces):
    resolv_data = ''
    for nameserver in get_nameservers(interfaces):
        resolv_data += 'nameserver %s\n' % nameserver

    if not resolv_data:
        return None, None

    return RESOLV_CONF_FILE, '# Automatically generated, do not edit\n' + \
                             resolv_data
dataset/ETHPy150Open rackerlabs/openstack-guest-agents-unix/commands/network.py/get_resolv_conf/original