code: def get_resolv_dns():
      
      result = []
      try:
          for line in open('/etc/resolv.conf', 'r'):
              if line.startswith('search'):
                  result.append(line.strip().split(' ')[1])
      except FileNotFoundError:
          pass
      return result
docs: Returns the dns servers configured in /etc/resolv.conf