feat: add local DNS mapping

This commit is contained in:
Conners Hua 2022-01-09 18:32:44 +08:00
parent 9bea38641e
commit 6b4d35ae90
3 changed files with 43 additions and 13 deletions

View File

@ -85,17 +85,22 @@ server=119.29.29.29
;doh-server=https://223.6.6.6/dns-query ;doh-server=https://223.6.6.6/dns-query
# 本地 DNS 映射 # 本地 DNS 映射
# Firebase Cloud Messaging # > Firebase Cloud Messaging
address=/mtalk.google.com/108.177.125.188 address=/mtalk.google.com/108.177.125.188
# Google Dl # > Google Dl
server=/dl.google.com/119.29.29.29 server=/dl.google.com/119.29.29.29
server=/dl.l.google.com/119.29.29.29 server=/dl.l.google.com/119.29.29.29
server=/update.googleapis.com/119.29.29.29
# TP-Link # > PlayStation
server=/tplogin.cn/system server=/*.dl.playstation.net/119.29.29.29
server=/tplinklogin.net/system
server=/melogin.cn/system # > Router Admin Panel
server=/falogin.cn/system server=/falogin.cn/system
server=/melogin.cn/system
server=/router.asus.com/system
server=/tplinklogin.net/system
server=/tplogin.cn/system
;server=8.8.4.4:53 ;server=8.8.4.4:53
;server=/example0.com/system ;server=/example0.com/system
@ -105,7 +110,6 @@ server=/falogin.cn/system
;address=/example5.com/192.168.16.18 ;address=/example5.com/192.168.16.18
;address=/example6.com/[2001:8d3:8d3:8d3:8d3:8d3:8d3:8d3] ;address=/example6.com/[2001:8d3:8d3:8d3:8d3:8d3:8d3:8d3]
[policy] [policy]
# #
# 需要策略图标的在策略后加上img-url=http://example.com/icon.png # 需要策略图标的在策略后加上img-url=http://example.com/icon.png

View File

@ -23,6 +23,25 @@ always-real-ip = %APPEND% msftconnecttest.com, msftncsi.com, *.msftconnecttest.c
# > VIF Excluded Routes # > VIF Excluded Routes
tun-excluded-routes = %APPEND% 239.255.255.250/32 tun-excluded-routes = %APPEND% 239.255.255.250/32
[Host]
# > Firebase Cloud Messaging
mtalk.google.com = 108.177.125.188
# > Google Dl
dl.google.com = server:119.29.29.29
dl.l.google.com = server:119.29.29.29
update.googleapis.com = server:119.29.29.29
# > PlayStation
*.dl.playstation.net = server:119.29.29.29
# > Router Admin Panel
falogin.cn = server:syslib
melogin.cn = server:syslib
router.asus.com = server:syslib
tplinklogin.net = server:syslib
tplogin.cn = server:syslib
[URL Rewrite] [URL Rewrite]
# Redirect Google Search Service # Redirect Google Search Service
^https?:\/\/(www.)?(g|google)\.cn https://www.google.com 302 ^https?:\/\/(www.)?(g|google)\.cn https://www.google.com 302

View File

@ -160,16 +160,23 @@ GEOIP,CN,🌐Direct
FINAL,🧭Final,dns-failed FINAL,🧭Final,dns-failed
[Host] [Host]
# Firebase Cloud Messaging # > Firebase Cloud Messaging
mtalk.google.com = 108.177.125.188 mtalk.google.com = 108.177.125.188
# Google Dl
# > Google Dl
dl.google.com = server:119.29.29.29 dl.google.com = server:119.29.29.29
dl.l.google.com = server:119.29.29.29 dl.l.google.com = server:119.29.29.29
# TP-Link update.googleapis.com = server:119.29.29.29
tplogin.cn = server:syslib
tplinklogin.net = server:syslib # > PlayStation
melogin.cn = server:syslib *.dl.playstation.net = server:119.29.29.29
# > Router Admin Panel
falogin.cn = server:syslib falogin.cn = server:syslib
melogin.cn = server:syslib
router.asus.com = server:syslib
tplinklogin.net = server:syslib
tplogin.cn = server:syslib
# 解锁了「模块」功能的用户可以使用 General.sgmodule 后可移除 [URL Rewrite] 及 [MITM] 的「hostname = www.google.cn,api.abema.io」部分 # 解锁了「模块」功能的用户可以使用 General.sgmodule 后可移除 [URL Rewrite] 及 [MITM] 的「hostname = www.google.cn,api.abema.io」部分
# 建议使用 General.sgmodule其他 .sgmodule 按需加入 # 建议使用 General.sgmodule其他 .sgmodule 按需加入