(self, domain_name: str, recursive: bool = False,
	        **kwargs: base.CommonArgs)
return self._client.request('/dns', args, decoder='json', **kwargs)
Resolves DNS links to their referenced dweb-path
		
		CIDs are hard to remember, but domain names are usually easy to
		remember. To create memorable aliases for CIDs, DNS TXT records
		can point to other DNS links, IPFS objects, IPNS keys, etc.
		This command resolves those links to the referenced object.
		
		For example, with this DNS TXT record::
		
			>>> import dns.resolver
			>>> a = dns.resolver.query("ipfs.io", "TXT")
			>>> a.response.answer[0].items[0].to_text()
			'"dnslink=/ipfs/QmTzQ1JRkWErjk39mryYw2WVaphAZNAREyMchXzYQ7c15n"'
		
		The resolver will give::
		
			>>> client.dns("ipfs.io")
			{'Path': '/ipfs/QmTzQ1JRkWErjk39mryYw2WVaphAZNAREyMchXzYQ7c15n'}
		
		Parameters
		----------
		domain_name
			The domain-name name to resolve
		recursive
			Resolve until the name is not a DNS link
		
		Returns
		-------
			dict
		
		+------+-------------------------------------+
		| Path | Resource were a DNS entry points to |
		+------+-------------------------------------+
Resolves DNS links to their referenced dweb-path
		
		CIDs are hard to remember, but domain names are usually easy to
		remember. To create memorable aliases for CIDs, DNS TXT records
		can point to other DNS links, IPFS objects, IPNS keys, etc.
		This command resolves those links to the referenced object.
		
		For example, with this DNS TXT record::
		
			>>> import dns.resolver
			>>> a = dns.resolver.query("ipfs.io", "TXT")
			>>> a.response.answer[0].items[0].to_text()
			'"dnslink=/ipfs/QmTzQ1JRkWErjk39mryYw2WVaphAZNAREyMchXzYQ7c15n"'
		
		The resolver will give::
		
			>>> client.dns("ipfs.io")
			{'Path': '/ipfs/QmTzQ1JRkWErjk39mryYw2WVaphAZNAREyMchXzYQ7c15n'}
		
		Parameters
		----------
		domain_name
			The domain-name name to resolve
		recursive
			Resolve until the name is not a DNS link
		
		Returns
		-------
			dict
		
		+------+-------------------------------------+
		| Path | Resource were a DNS entry points to |
		+------+-------------------------------------+
Resolves DNS links to their referenced dweb - path CIDs are hard to remember but domain names are usually easy to remember . To create memorable aliases for CIDs DNS TXT records can point to other DNS links IPFS objects IPNS keys etc . This command resolves those links to the referenced object . For example with this DNS TXT record :: >>> import dns . resolver >>> a = dns . resolver . query ( ipfs . io TXT ) >>> a . response . answer [ 0 ] . items [ 0 ] . to_text () dnslink = / ipfs / QmTzQ1JRkWErjk39mryYw2WVaphAZNAREyMchXzYQ7c15n The resolver will give :: >>> client . dns ( ipfs . io ) { Path : / ipfs / QmTzQ1JRkWErjk39mryYw2WVaphAZNAREyMchXzYQ7c15n } Parameters ---------- domain_name The domain - name name to resolve recursive Resolve until the name is not a DNS link Returns ------- dict + ------ + ------------------------------------- + | Path | Resource were a DNS entry points to | + ------ + ------------------------------------- +
def dns(self, domain_name: str, recursive: bool = False,
	        **kwargs: base.CommonArgs):
		"""Resolves DNS links to their referenced dweb-path
		
		CIDs are hard to remember, but domain names are usually easy to
		remember. To create memorable aliases for CIDs, DNS TXT records
		can point to other DNS links, IPFS objects, IPNS keys, etc.
		This command resolves those links to the referenced object.
		
		For example, with this DNS TXT record::
		
			>>> import dns.resolver
			>>> a = dns.resolver.query("ipfs.io", "TXT")
			>>> a.response.answer[0].items[0].to_text()
			'"dnslink=/ipfs/QmTzQ1JRkWErjk39mryYw2WVaphAZNAREyMchXzYQ7c15n"'
		
		The resolver will give::
		
			>>> client.dns("ipfs.io")
			{'Path': '/ipfs/QmTzQ1JRkWErjk39mryYw2WVaphAZNAREyMchXzYQ7c15n'}
		
		Parameters
		----------
		domain_name
			The domain-name name to resolve
		recursive
			Resolve until the name is not a DNS link
		
		Returns
		-------
			dict
		
		+------+-------------------------------------+
		| Path | Resource were a DNS entry points to |
		+------+-------------------------------------+
		"""
		kwargs.setdefault("opts", {})["recursive"] = recursive
		
		args = (domain_name,)
		return self._client.request('/dns', args, decoder='json', **kwargs)
def dns ( self , domain_name : str , recursive : bool = False , * * kwargs : base . CommonArgs ) : kwargs . setdefault ( "opts" , { } ) [ "recursive" ] = recursive args = ( domain_name , ) return self . _client . request ( '/dns' , args , decoder = 'json' , * * kwargs )