| Class | ResolverBase |
ResolverBase is a base class for implementations of interfaces.IResolver which deals with a lot of the boilerplate of implementing all of the lookup methods. |
| Function | extractRecord |
Resolve a name to an IP address, following CNAME records and NS referrals recursively. |
| Constant | EMPTY_RESULT |
Undocumented |
| Variable | typeToMethod |
Undocumented |
| Constant | _ADD |
Undocumented |
| Constant | _ANS |
Undocumented |
| Constant | _AUTH |
Undocumented |
Resolve a name to an IP address, following CNAME records and NS referrals recursively.
This is an implementation detail of ResolverBase.getHostByName.
| Parameters | |
resolver:IResolver | The resolver to use for the next query (unless handling an NS referral). |
name:dns.Name | The name being looked up. |
answers:list of dns.RRHeader | All of the records returned by the previous query (answers, authority, and additional concatenated). |
level:int | Remaining recursion budget. This is decremented at each recursion. The query returns None when it reaches 0. |
| Returns | |
native str or None | The first IPv4 or IPv6 address (as a dotted quad or colon quibbles), or None when no result is found. |