docs: def detect(self):
          """
          Resolve the hostname to an IP address through the operating system.
  
          Depending on the 'family' option, either ipv4 or ipv6 resolution is
          carried out.
  
          If multiple IP addresses are found, the first one is returned.
  
          :return: ip address
          """
          theip = next(iter(resolve(self.opts_hostname, self.opts_family)), None)
          self.set_current_value(theip)
          return theip