-
Notifications
You must be signed in to change notification settings - Fork 803
Expand file tree
/
Copy pathDNSServer.cs
More file actions
51 lines (49 loc) · 1.57 KB
/
DNSServer.cs
File metadata and controls
51 lines (49 loc) · 1.57 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
47
48
49
50
51
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(), // Windows DNS server
new("Cloudflare",
[
new("1.1.1.1", 53, TransportProtocol.Udp),
new("1.0.0.1", 53, TransportProtocol.Udp)
]),
new("DNS.Watch",
[
new("84.200.69.80", 53, TransportProtocol.Udp),
new("84.200.70.40", 53, TransportProtocol.Udp)
]),
new("Google Public DNS",
[
new("8.8.8.8", 53, TransportProtocol.Udp),
new("8.8.4.4", 53, TransportProtocol.Udp)
]),
new("Level3",
[
new("209.244.0.3", 53, TransportProtocol.Udp),
new("209.244.0.4", 53, TransportProtocol.Udp)
]),
new("Quad9",
[
new ("9.9.9.9", 53, TransportProtocol.Udp),
new ("149.112.112.112", 53 , TransportProtocol.Udp)
]),
new("Verisign",
[
new("64.6.64.6", 53, TransportProtocol.Udp),
new("64.6.65.6", 53, TransportProtocol.Udp)
])
];
}
}