Esempio n. 1
0
 public LookupClient()
     : this(NameServer.ResolveNameServers()?.ToArray())
 {
 }
Esempio n. 2
0
 // TODO: evalualte if defaulting resolveNameServers to false here and in the query plan, fall back to configured nameservers of the client
 /// <summary>
 /// Creates a new instance of <see cref="DnsQueryOptions"/> without name servers.
 /// </summary>
 /// <remarks>
 /// If no nameservers are configured, a query will fallback to the nameservers already configured on the <see cref="LookupClient"/> instance.
 /// </remarks>
 /// <param name="resolveNameServers">If set to <c>true</c>, <see cref="NameServer.ResolveNameServers(bool, bool)"/>
 /// will be used to get a list of nameservers.</param>
 public DnsQueryOptions(bool resolveNameServers = false)
     : this(resolveNameServers ? NameServer.ResolveNameServers() : null)
 {
     AutoResolvedNameServers = resolveNameServers;
 }