forked from BornToBeRoot/NETworkManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDNSServer.cs
More file actions
46 lines (44 loc) · 1.58 KB
/
Copy pathDNSServer.cs
File metadata and controls
46 lines (44 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
using System.Collections.Generic;
namespace NETworkManager.Models.Network;
/// <summary>
/// Class provides static information's about dns servers.
/// </summary>
public static class DNSServer
{
/// <summary>
/// Gets the default list of common dns servers.
/// </summary>
/// <returns>List of common dns servers.</returns>
public static List<DNSServerConnectionInfoProfile> GetDefaultList()
{
return new List<DNSServerConnectionInfoProfile>
{
new(), // Windows DNS server
new("Cloudflare", new List<ServerConnectionInfo>
{
new("1.1.1.1", 53, TransportProtocol.Udp),
new("1.0.0.1", 53, TransportProtocol.Udp)
}),
new("DNS.Watch", new List<ServerConnectionInfo>
{
new("84.200.69.80", 53, TransportProtocol.Udp),
new("84.200.70.40", 53, TransportProtocol.Udp)
}),
new("Google Public DNS", new List<ServerConnectionInfo>
{
new("8.8.8.8", 53, TransportProtocol.Udp),
new("8.8.4.4", 53, TransportProtocol.Udp)
}),
new("Level3", new List<ServerConnectionInfo>
{
new("209.244.0.3", 53, TransportProtocol.Udp),
new("209.244.0.4", 53, TransportProtocol.Udp)
}),
new("Verisign", new List<ServerConnectionInfo>
{
new("64.6.64.6", 53, TransportProtocol.Udp),
new("64.6.65.6", 53, TransportProtocol.Udp)
})
};
}
}