I am using an application to get the FQDNs for a list of servers based on their hostname. There seems to a bottleneck to the solution, the FQDN search requires IPV4 address only as there are no IPV6 machines used across the network. The additional lookup of IPV6 are taking more time to find the host FQDNs which delays the execution time as a whole. Can the IPV6 serach be avoided using Dns.GetHostEntryAsync method?
Asked
Active
Viewed 227 times
1 Answers
0
I'm not sure this is supported.
You can use ARSoft.Tools.Net library for better DNS powers. I've used this in some very demanding situations. It works (and is really asynchronous, unlike .NET's DNS
, which isn't really asynchronous).
For instance:
var answer = await DnsClient.Default
.ResolveAsync(DomainName.Parse("www.google.com"), RecordType.A);
var addresses = answer.AnswerRecords
.OfType<IAddressRecord>()
.Select(r => r.Address);

spender
- 117,338
- 33
- 229
- 351