Asynchronous Resolver Functions

dns.asyncresolver.resolve(qname, rdtype=<RdataType.A: 1>, rdclass=<RdataClass.IN: 1>, tcp=False, source=None, raise_on_no_answer=True, source_port=0, lifetime=None, search=None, backend=None)[source]

Query nameservers asynchronously to find the answer to the question.

This is a convenience function that uses the default resolver object to make the query.

See dns.asyncresolver.Resolver.resolve() for more information on the parameters.

dns.asyncresolver.resolve_address(ipaddr, *args, **kwargs)[source]

Use a resolver to run a reverse query for PTR records.

See dns.asyncresolver.Resolver.resolve_address() for more information on the parameters.

dns.asyncresolver.canonical_name(name)[source]

Determine the canonical name of name.

See dns.resolver.Resolver.canonical_name() for more information on the parameters and possible exceptions.

dns.asyncresolver.zone_for_name(name, rdclass=<RdataClass.IN: 1>, tcp=False, resolver=None, backend=None)[source]

Find the name of the zone which contains the specified name.

See dns.resolver.Resolver.zone_for_name() for more information on the parameters and possible exceptions.