Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit a6587ab

Browse files
committed
refactor: Change default DNS Servers
1 parent 70418f7 commit a6587ab

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

shadowsocks-csharp/Model/Configuration.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,11 @@ public Configuration()
477477
LangName = string.Empty;
478478
DnsClients = new List<DnsClient>
479479
{
480-
new(DnsType.DnsOverTls) {DnsServer = @"1.1.1.1"},
481-
new(DnsType.Default) {DnsServer = @"1.1.1.1"},
482-
new(DnsType.DnsOverTls),
483-
new(DnsType.Default)
480+
new(DnsType.DnsOverTls) { DnsServer = @"208.67.222.222" },
481+
new(DnsType.DnsOverTls) { DnsServer = @"208.67.220.220" },
482+
new(DnsType.DnsOverTls) { DnsServer = @"1.1.1.1" },
483+
new(DnsType.DnsOverTls) { DnsServer = @"1.0.0.1" },
484+
new(DnsType.DnsOverTls) { DnsServer = @"1.12.12.12" },
484485
};
485486
ServerSubscribes = new List<ServerSubscribe>();
486487
PortMap = new Dictionary<string, PortMapConfig>();

shadowsocks-csharp/Model/DnsClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ public bool IsUdpEnabled
127127
#region Ignore
128128

129129
private IPAddress? _ip;
130-
public const string DefaultDnsServer = @"8.8.8.8";
130+
public const string DefaultDnsServer = @"208.67.222.222";
131131
public const ushort DefaultPort = 53;
132-
public const string DefaultTlsDnsServer = @"dns.google";
132+
public const string DefaultTlsDnsServer = @"208.67.222.222";
133133
public const ushort DefaultTlsPort = 853;
134134

135135
#endregion

0 commit comments

Comments
 (0)