Supports peer discovery through DNS.
This class does not support the testnet as currently there are no DNS servers providing testnet hosts. If this class is being used for testnet you must specify the hostnames to use.

Failure to resolve individual host names will not cause an Exception to be thrown. However, if all hosts passed fail to resolve a PeerDiscoveryException will be thrown during getPeers().

Inheritance: IPeerDiscovery
 /// <exception cref="PeerDiscoveryException"/>
 private static void PrintDns()
 {
     var start = Environment.TickCount;
     var dns = new DnsDiscovery(NetworkParameters.ProdNet());
     PrintAddresses(dns.GetPeers());
     PrintElapsed(start);
 }