code: def dns_name(self):
          
          for scope in ['public', 'local-cloud']:
              addresses = self.safe_data['addresses'] or []
              addresses = [address for address in addresses
                           if address['scope'] == scope]
              if addresses:
                  return addresses[0]['value']
          return None
docs: Get the DNS name for this machine. This is a best guess based on the
          addresses available in current data.
  
          May return None if no suitable address is found.