docs: def update_dns(self, new_ip):
          """Call No-IP API based on dict login_info and return the status code.
          """
  
          headers = None
          if self.auth_type == 'T':
              api_call_url = self._base_url.format(hostname=self.hostname,
                                                   token=self.auth.token,
                                                   ip=new_ip)
          else:
              api_call_url = self._base_url.format(hostname=self.hostname,
                                                   ip=new_ip)
              headers = {
                  'Authorization': "Basic %s" %
                                   self.auth.base64key.decode('utf-8'),
                  'User-Agent': "%s/%s %s" % (__title__, __version__, __email__)
              }
  
          r = requests.get(api_call_url, headers=headers)
          self.last_ddns_response = str(r.text).strip()
  
          return r.status_code, r.text