Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Commit

Permalink
adjust default value
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 committed Nov 6, 2024
1 parent d024214 commit c043281
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/main/utils/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export const defaultControledMihomoConfig: Partial<IMihomoConfig> = {
'fake-ip-filter': ['*', '+.lan', '+.local', 'time.*.com', 'ntp.*.com', '+.market.xiaomi.com'],
'use-hosts': false,
'use-system-hosts': false,
nameserver: ['https://doh.pub/dns-query', 'https://dns.alidns.com/dns-query'],
'proxy-server-nameserver': ['https://doh.pub/dns-query', 'https://dns.alidns.com/dns-query']
nameserver: ['https://120.53.53.53/dns-query', 'https://223.5.5.5/dns-query'],
'proxy-server-nameserver': ['https://120.53.53.53/dns-query', 'https://223.5.5.5/dns-query']
},
sniffer: {
enable: true,
Expand Down
12 changes: 6 additions & 6 deletions src/renderer/src/pages/dns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ const DNS: React.FC = () => {
'use-hosts': useHosts = false,
'use-system-hosts': useSystemHosts = false,
'respect-rules': respectRules = false,
nameserver = ['https://doh.pub/dns-query', 'https://dns.alidns.com/dns-query'],
nameserver = ['https://120.53.53.53/dns-query', 'https://223.5.5.5/dns-query'],
'proxy-server-nameserver': proxyServerNameserver = [
'https://doh.pub/dns-query',
'https://dns.alidns.com/dns-query'
'https://120.53.53.53/dns-query',
'https://223.5.5.5/dns-query'
]
} = dns || {}
const [changed, setChanged] = useState(false)
Expand Down Expand Up @@ -195,7 +195,7 @@ const DNS: React.FC = () => {
</SettingItem>
<div className="flex flex-col items-stretch">
<h3>真实 IP 回应</h3>
{renderListInputs('fakeIPFilter', '例: +.lan')}
{renderListInputs('fakeIPFilter', '例+.lan')}
</div>
<Divider className="my-2" />
</>
Expand All @@ -221,12 +221,12 @@ const DNS: React.FC = () => {

<div className="flex flex-col items-stretch">
<h3>代理节点域名解析</h3>
{renderListInputs('proxyServerNameserver', '例: tls://223.5.5.5')}
{renderListInputs('proxyServerNameserver', '例tls://223.5.5.5')}
</div>
<Divider className="my-2" />
<div className="flex flex-col items-stretch">
<h3>DNS 服务器</h3>
{renderListInputs('nameserver', '例: tls://223.5.5.5')}
{renderListInputs('nameserver', '例tls://223.5.5.5')}
</div>
<Divider className="my-2" />
<SettingItem title="覆盖DNS策略" divider>
Expand Down

3 comments on commit c043281

@ChuNiZuoJi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DNSPod 的 DoH 和 DoT 已经不推荐用 IP 接入,IP 接入方式随时可能下线。 https://docs.dnspod.cn/notices/mian-fei-ban-dot-dohbu-zai-gong-kai-ipjie-ru-de-gong-gao/

以及 DoH 最推荐的使用方式是用域名接入,因为这样可以同时解析 IPv4 和 IPv6。

@xishang0128
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DNSPod 的 DoH 和 DoT 已经不推荐用 IP 接入,IP 接入方式随时可能下线。 https://docs.dnspod.cn/notices/mian-fei-ban-dot-dohbu-zai-gong-kai-ipjie-ru-de-gong-gao/

以及 DoH 最推荐的使用方式是用域名接入,因为这样可以同时解析 IPv4 和 IPv6。

1.ali依旧支持,dns是并发,所以无影响,这是为了防止配置中奇奇怪怪的default nameserver可能导致的使用问题

2.仅阿里支持ipv6连接,有需求的自行替换即可

@ChuNiZuoJi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.ali依旧支持,dns是并发,所以无影响,这是为了防止配置中奇奇怪怪的default nameserver可能导致的使用问题

2.仅阿里支持ipv6连接,有需求的自行替换即可

确实,default-nameserver 如果设置不当就会出现问题,所以何不把 default-nameserver 也加入 DNS 设置页面?事实上,我为了防止这个问题,目前是用全局覆写将 default-nameserver 设置为 223.5.5.5 和 119.29.29.29。

Please sign in to comment.