DnsServerCollectionAutodetect Method |
Clears and then populates the collection with
DnsServer objects by
looking up the following sources:
- "MailBee.DnsMX.DnsServerCollection" key in the config file (and/or DnsServers if it's not empty).
- Network interface.
- Windows registry.
- WMI database.
This overload will skip DNS servers with IPv6 addresses and won't add root 8.8.8.8 and 8.8.4.4 servers. See
Autodetect(DnsAutodetectOptions) overload for more options.
Namespace: MailBee.DnsMXAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax Public Function Autodetect As Boolean
Return Value
Type:
Booleantrue if at least one DNS server was found; otherwise,
false.
Remarks
Once at least one DNS server definition is found, these definitions are added to the collection
as DnsServer objects, and the method returns.
You can find more information and code samples on MailBee DNS server autodetection
mechanism in DnsAutodetectOptions enumeration documentation.
Note |
---|
Network interface and WMI database search requires Full trust for MailBee assembly. If the current security setting is
lower than Full trust, Network interface and WMI database search won't find any DNS server definitions. |
See Also