#6840 enhancement new
t.n.client.Resolver should allow alternative DNS protocol factories to be used
|Reported by:||rwall||Owned by:||rwall|
(github, coverage, patch, buildbot, log)
client.Resolver is currently hard coded to use dns.DNSDatagramProtocol and dns.DNSProtocol (TCP) via client.DNSClientFactory.
Allow a caller to supply alternative stream and datagram protocol factories.
- client.Resolver constructor will accept a "datagramProtocolFactory" and "streamProtocolFactory" arguments, which will default to existing factories but which will allow dns.EDNSDatagramProtocol to be supplied instead.