Open z104866 opened 5 months ago
5053 是 MosDNS 端口,先看下$HOME/nestingdns/log
路径下 MosDNS 日志有没有报错,然后用docker exec -it nestingdns /bin/sh
进入容器,执行sh /nestingdns/bin/update.sh
重启 MosDNS
log 日志 2024-05-31T08:00:29.161+0800 INFO load config {"file": "/nestingdns/etc/conf/mosdns_load_rules.yaml"} 2024-05-31T08:00:29.161+0800 INFO loading plugin {"tag": "geosite-cn", "type": "domain_set"} 2024-05-31T08:00:29.396+0800 INFO loading plugin {"tag": "geosite-nocn", "type": "domain_set"} 2024-05-31T08:00:29.449+0800 INFO starting shutdown sequences 2024-05-31T08:00:29.449+0800 INFO all plugins were closed
后面的操作都进行了..一样结果
规则没有加载完,应该是哪个规则文件有问题。到$HOME/nestingdns/etc/site/
路径看下这几个 txt 配置文件。
# 代理域名
- tag: "geosite-nocn"
type: "domain_set"
args:
files:
- "/nestingdns/etc/site/proxy-list.txt"
- "/nestingdns/etc/site/gfw.txt"
- "/nestingdns/etc/site/greatfire.txt"
- "/nestingdns/etc/site/force-nocn.txt" # 自定义代理域名
# 局域网域名
- tag: "geosite-private"
type: "domain_set"
args:
files:
- "/nestingdns/etc/site/private.txt" # 内网域名
老大我研究过了 昨天我重装的这个东西 但是我用的是旧版的yaml 文件copy 过去的,想不到最近你修改过代码了,所以 位置路径不对了…..我全部重新拉一遍 这次自己修改yaml 文件 ….系统就好了 感谢感谢
我设置的是早上4:00更新, 只要已更新好像就不行了。。。 2024-06-03T04:00:20.371+0800 INFO load config {"file": "/nestingdns/etc/conf/mosdns_load_rules.yaml"} 2024-06-03T04:00:20.371+0800 INFO loading plugin {"tag": "geosite-cn", "type": "domain_set"} 2024-06-03T04:00:20.612+0800 INFO loading plugin {"tag": "geosite-nocn", "type": "domain_set"} 2024-06-03T04:00:20.612+0800 INFO starting shutdown sequences 2024-06-03T04:00:20.612+0800 INFO all plugins were closed 我也看过了,所有txt都更新过了呀?
- "/nestingdns/etc/site/direct-list.txt"
- "/nestingdns/etc/site/apple-cn.txt"
- "/nestingdns/etc/site/google-cn.txt"
- "/nestingdns/etc/site/force-cn.txt" # 自定义国内域名
- "/nestingdns/etc/site/proxy-list.txt"
- "/nestingdns/etc/site/gfw.txt"
- "/nestingdns/etc/site/greatfire.txt"
- "/nestingdns/etc/site/force-nocn.txt" # 自定义代理域名
- "/nestingdns/etc/site/private.txt" # 内网域名
- "/nestingdns/etc/site/CN-ip-cidr.txt" # 国内 ip 段
- "/nestingdns/etc/site/cloudflare.txt" # cloudflare ip 段
- "/nestingdns/etc/site/hosts.txt"
文件都在 yaml compose volumes:
???
/root/docker/01_Applications/253_NestingDNS/etc/site
目录打包发下看看
apple-cn.txt
文件有问题,curl https://mirror.ghproxy.com/https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/apple-cn.txt
看下。
我的dns 跑的是macvlan 从主机做了一下不稳定, root@NanoPi-R4SE:~# curl https://mirror.ghproxy.com/https://raw.githubusercontent.com/Loyalsoldier/v2ray-rules-dat/release/apple-cn.txt
但是一会就好了 估计是DNS的问题 sudo nmcli con mod "Wired connection 1" ipv4.addresses 192.168.123.250/24 ipv4.gateway 192.168.123.1 ipv4.dns 192.168.123.1 ipv4.method manual ipv4.dns 192.168.123.1 我不确认到底之设置路由器IP,NestingDNS ip,还是8.8.8.8?
更新过dns,然后curl 也成功了。。。重新进docker ,执行sh /nestingdns/bin/update.sh重启 MosDNS。。。 结果仍然是一样的DNS 2024-06-03T12:34:49.968+0800 INFO load config {"file": "/nestingdns/etc/conf/mosdns_load_rules.yaml"} 2024-06-03T12:34:49.968+0800 INFO loading plugin {"tag": "geosite-cn", "type": "domain_set"} 2024-06-03T12:34:50.217+0800 INFO loading plugin {"tag": "geosite-nocn", "type": "domain_set"} 2024-06-03T12:34:50.264+0800 INFO starting shutdown sequences 2024-06-03T12:34:50.264+0800 INFO all plugins were closed
看下apple-cn.txt
文件
看下
apple-cn.txt
文件
有东西 full:a1.mzstatic.com full:a2.mzstatic.com full:a3.mzstatic.com full:a4.mzstatic.com full:a5.mzstatic.com full:adcdownload.apple.com.akadns.net full:adcdownload.apple.com full:amp-api.media.apple.com full:api-p-ap-c.smoot.apple.com full:api-p-ap-d.smoot.apple.com full:api-p-ap-e.smoot.apple.com full:app-site-association.cdn-apple.com full:appldnld.apple.com full:appldnld.g.aaplimg.com full:appleid.cdn-apple.com full:apps.apple.com full:apps.mzstatic.com full:cdn-cn1.apple-mapkit.com full:cdn-cn2.apple-mapkit.com full:cdn-cn3.apple-mapkit.com full:cdn-cn4.apple-mapkit.com full:cdn.apple-mapkit.com full:cdn1.apple-mapkit.com full:cdn2.apple-mapkit.com full:cdn3.apple-mapkit.com full:cdn4.apple-mapkit.com full:cds-cdn.v.aaplimg.com full:cds.apple.com.akadns.net full:cds.apple.com full:cdsassets.apple.com full:cl1-cdn.origin-apple.com.akadns.net full:cl1.apple.com full:cl2-cn.apple.com full:cl2.apple.com full:cl3-cdn.origin-apple.com.akadns.net full:cl3.apple.com full:cl4-cdn.origin-apple.com.akadns.net full:cl4-cn.apple.com full:cl4.apple.com full:cl5-cdn.origin-apple.com.akadns.net full:cl5.apple.com full:clientflow.apple.com.akadns.net full:clientflow.apple.com full:cn-smp-paymentservices.apple.com full:configuration.apple.com.akadns.net full:configuration.apple.com full:cstat.apple.com full:cstat.cdn-apple.com full:dd-cdn.origin-apple.com.akadns.net full:dejavu.apple.com full:download.developer.apple.com full:experiments.apple.com full:gs-loc-cn.apple.com full:gs-loc.apple.com full:gsp10-ssl-cn.ls.apple.com full:gsp12-cn.ls.apple.com full:gsp13-cn.ls.apple.com full:gsp4-cn.ls.apple.com.edgekey.net.globalredir.akadns.net full:gsp4-cn.ls.apple.com.edgekey.net full:gsp4-cn.ls.apple.com full:gsp5-cn.ls.apple.com full:gsp85-cn-ssl.ls.apple.com full:gspe19-2-cn-ssl.ls.apple.com full:gspe19-cn-ssl.ls.apple.com full:gspe19-cn.ls-apple.com.akadns.net full:gspe19-cn.ls.apple.com full:gspe21-ssl.ls.apple.com full:gspe21.ls.apple.com full:gspe35-ssl.ls.apple.com full:gspe79-cn-ssl.ls.apple.com full:guzzoni-apple-com.v.aaplimg.com full:guzzoni.apple.com full:guzzoni.smoot.apple.com full:iadsdk.apple.com full:icloud-cdn.icloud.com.akadns.net full:icloud.cdn-apple.com full:images.apple.com.akadns.net full:images.apple.com.edgekey.net.globalredir.akadns.net full:images.apple.com full:init-kt.apple.com full:init-p01md-lb.push-apple.com.akadns.net full:init-p01md.apple.com full:init-p01st-lb.push-apple.com.akadns.net full:init-p01st.push.apple.com full:init-s01st-lb.push-apple.com.akadns.net full:init-s01st.push.apple.com full:init.ess.apple.com full:iosapps.itunes.g.aaplimg.com full:ipcdn.apple.com full:iphone-ld.apple.com full:iphone-ld.origin-apple.com.akadns.net full:is1-ssl.mzstatic.com full:is1.mzstatic.com full:is2-ssl.mzstatic.com full:is2.mzstatic.com full:is3-ssl.mzstatic.com full:is3.mzstatic.com full:is4-ssl.mzstatic.com full:is4.mzstatic.com full:is5-ssl.mzstatic.com full:is5.mzstatic.com full:itunes-apple.com.akadns.net full:itunes.apple.com full:itunesconnect.apple.com full:mesu-cdn.apple.com.akadns.net full:mesu-china.apple.com.akadns.net full:mesu.apple.com full:ml.cdn-apple.com full:music.apple.com full:ocsp-lb.apple.com.akadns.net full:ocsp2-lb.apple.com.akadns.net full:ocsp.apple.com full:ocsp2.apple.com full:oscdn.apple.com full:oscdn.origin-apple.com.akadns.net full:osxapps.itunes.g.aaplimg.com full:pancake.apple.com full:pancake.cdn-apple.com.akadns.net full:pba0.apple.com full:probe.siri.apple.com full:prod-support.apple-support.akadns.net full:publicassets.cdn-apple.com full:reserve-prime.apple.com full:s.mzstatic.com full:seed-sequoia.siri.apple.com full:seed-swallow.siri.apple.com full:seed.siri.apple.com full:sequoia.apple.com full:sh-pod2-smp-device.apple.com full:shazam-insights.cdn-apple.com full:smp-device-content.apple.com full:static.gc.apple.com full:stocks-sparkline-lb.apple.com.akadns.net full:stocks-sparkline.apple.com full:store.apple.com.edgekey.net.globalredir.akadns.net full:store.apple.com.edgekey.net full:store.apple.com full:store.storeimages.apple.com.akadns.net full:store.storeimages.cdn-apple.com full:support-china.apple-support.akadns.net full:support.apple.com full:swallow-apple-com.v.aaplimg.com full:swallow.apple.com full:swcatalog-cdn.apple.com.akadns.net full:swcatalog.apple.com full:swcdn.apple.com full:swcdn.g.aaplimg.com full:swdist.apple.com.akadns.net full:swdist.apple.com full:swscan-cdn.apple.com.akadns.net full:swscan.apple.com full:sylvan.apple.com full:tj-pod1-smp-device.apple.com full:updates-http.cdn-apple.com.akadns.net full:updates-http.cdn-apple.com full:updates.cdn-apple.com full:valid.apple.com full:valid.origin-apple.com.akadns.net full:weather-data.apple.com.akadns.net full:weather-data.apple.com full:weather-map.apple.com full:weather-map2.apple.com full:weatherkit.apple.com full:www.apple.com.edgekey.net.globalredir.akadns.net full:www.apple.com.edgekey.net full:www.apple.com full:xp.apple.com
除了apple-cn.txt,还有gfw 和greatfire。。里面也是有问题,所以这3个文件只要有一个更新有问题,就会影响到msdns,导致无法启动
tag: "geosite-cn" # 插件的 tag。由用户自由设定但不能重复。 type: "domain_set" # domain_set插件,载入的域名表可供其他插件引用。插件加载后,数据只占一份内存。引用的数据是共享的,多次被引用不会消耗格外内存。 args: # 插件参数。取决于插件类型。 files: # 从文本文件载入
除了apple-cn.txt,还有gfw 和greatfire。。里面也是有问题,所以这3个文件只要有一个更新有问题,就会影响到msdns,导致无法启动
直连域名
- tag: "geosite-cn" # 插件的 tag。由用户自由设定但不能重复。 type: "domain_set" # domain_set插件,载入的域名表可供其他插件引用。插件加载后,数据只占一份内存。引用的数据是共享的,多次被引用不会消耗格外内存。 args: # 插件参数。取决于插件类型。 files: # 从文本文件载入
- "/nestingdns/etc/site/direct-list.txt"
- "/nestingdns/etc/site/apple-cn.txt"
- "/nestingdns/etc/site/google-cn.txt"
- "/nestingdns/etc/site/force-cn.txt" # 自定义国内域名
代理域名
- tag: "geosite-nocn" type: "domain_set" args: files:
- "/nestingdns/etc/site/proxy-list.txt"
- "/nestingdns/etc/site/gfw.txt"
- "/nestingdns/etc/site/greatfire.txt"
- "/nestingdns/etc/site/force-nocn.txt" # 自定义代理域名
由于每天更新 SCHEDULE: '0 4 *',所以一旦更新为文件有问题就会导致msdns,无法启动。。。。
代码更新了,如果下载失败,就不进行 site 文件替换。重拉试下。
2024/05/31 08:48:52.182726 [error] dnsproxy: upstream 127.0.0.1:5053 failed to exchange ;dns.msftncsi.com. IN A in 1.696625ms: exchanging with 127.0.0.1:5053 over udp: read udp 127.0.0.1:48720->127.0.0.1:5053: read: connection refused????
在adg里面将127.0.0.1:6053 ,就是好的?5053 就是不活了