def _get_primary_nameserver(self):
    try:
      resolv_file = open(self.RESOLV_CONF)
    except __HOLE__:
      raise DnsReadError()
    for line in resolv_file:
      if line.startswith('nameserver '):
        return line.split()[1]
    raise DnsReadError()
dataset/ETHPy150Open chromium/web-page-replay/platformsettings.py/_FreeBSDPlatformSettings._get_primary_nameserver