|
|
ddns服务好像是Wan口就绪就启动,解析IPV4地址确实时序上没问题没问题。但是解析ipv6就有问题,并脚本也有问题,它解析不到ipv6的时候是直接退出了,Error: '1' - TERMINATE退出了,Error: '1' - TERMINATE退出了,而不是等待一个延迟再继续解析。
导致凡是ddns设置了ipv6解析的条目,开机后都会错误退出。
系统日志:
Thu Sep 11 05:01:29 2025 daemon.notice netifd: Interface 'wan' is now up
Thu Sep 11 05:01:30 2025 user.notice nlbwmon: Reloading nlbwmon due to ifup of loopback (lo)
Thu Sep 11 05:01:30 2025 user.notice ddns-scripts[1702]: xxxxxxxx: PID '1702' started at 2025-09-11 05:01
此条解析的ddns日志
050130 : ************ ************** ************** **************
050130 note : PID '1702' started at 2025-09-11 05:01
050130 : ddns version : 2.7.8-24
050130 : uci configuration:
------------------------------------------------
050131 : verbose mode : 0 - run normal, NO console output
050131 : check interval: 600 seconds
050131 : force interval: 21600 seconds
050131 : retry interval: 60 seconds
050131 : retry counter : 0 times
050131 : No old process
050131 : last update: never
050131 : Detect registered/public IP
050131 : #> /usr/bin/nslookup xxxxxxxxxx >/var/run/ddns/xxxxxxxxxx.dat 2>/var/run/ddns/xxxxxxxxxx.err
050132 : Registered IP '240e:3a6:5627:97c0::1' detected
050132 info : Starting main loop at 2025-09-11 05:01
050132 : Detect local IP on 'web'
050132 ERROR : Can not detect local IP using network_get_ipaddr6 'lan' - Error: '1' - TERMINATE
延迟个几秒,等LAN口的ipv6地址就绪了再启动就没问题了。
这就需要一个wan启动后延迟启动ddns服务的脚本,或者改写ddns的监测脚本,监测不到Can not detect local IP using network_get_ipaddr6 'lan' 时延迟再loop |
|