def detect(self):
        """
        Detect the WAN IP of the current process through DNS.

        Depending on the 'family' option, either ipv4 or ipv6 resolution is
        carried out.

        :return: ip address
        """
        theip = find_ip(family=self.opts_family)
        self.set_current_value(theip)
        return theip
Detect the WAN IP of the current process through DNS.

        Depending on the 'family' option, either ipv4 or ipv6 resolution is
        carried out.

        :return: ip address