Lines Matching refs:resolv
15 _resolv_bak_file = 'resolv.conf.bak'
56 # Follow resolv.conf symlink.
57 resolv = os.path.realpath(constants.RESOLV_CONF_FILE)
59 resolv_dir = os.path.dirname(resolv)
62 # Test to make sure the current resolv.conf isn't already our
67 if (utils.read_one_line(resolv) == resolv_contents and
69 logging.error('Current resolv.conf is setup for our local '
73 # Back up the current resolv.conf.
74 os.rename(resolv, resolv_bak)
75 # To stop flimflam from editing resolv.conf while we're working
79 resolv_fd = open(resolv, 'w')
86 assert utils.read_one_line(resolv) == resolv_contents
99 # Follow resolv.conf symlink.
100 resolv = os.path.realpath(constants.RESOLV_CONF_FILE)
102 resolv_dir = os.path.dirname(resolv)
106 os.rename(resolv_bak, resolv)
120 'resolv.conf contents are: ' +
121 utils.read_one_line(resolv)),