I have flashed Merlin 3004.388.7 firmeware to my AX86U and enabled custom ddns in /jffs/scripts/ddns-start with my custom domain like ddns.****.xyz
in this scirpt I have send notice to /sbin/ddns_custom_updated
now I have add logger feature to print the info in web log,
and also set the WEB UI setting from [WAN]-- [DDNS] --[Forced update interval (in days)] to 5 or 10
seems it can't work anymore, it always update the ddns every minutes.
after I add logger command to the script, below is the timestamp and detail log:
also found some ddns args from nvram show |grep ddns :
the issue seems error in:
how to fix it and use the webui setting value to force update ddns?
Thanks
in this scirpt I have send notice to /sbin/ddns_custom_updated
now I have add logger feature to print the info in web log,
Code:
if [ $? -eq 0 ]; then
echo "DDNS updadte pass"
logger "DDNS updadte pass"
/sbin/ddns_custom_updated 1
else
echo "DDNS updadte failed"
logger "DDNS updadte failed"
/sbin/ddns_custom_updated 0
fi
and also set the WEB UI setting from [WAN]-- [DDNS] --[Forced update interval (in days)] to 5 or 10
seems it can't work anymore, it always update the ddns every minutes.
after I add logger command to the script, below is the timestamp and detail log:
Code:
May 24 18:32:20 ddns: Completed custom ddns update
May 24 18:32:50 watchdog: start ddns.
May 24 18:32:50 ddns: update CUSTOM , wan_unit 0
May 24 18:32:50 ddns: Clear ddns cache.
May 24 18:32:50 custom_script: Running /jffs/scripts/ddns-start (args: 221.xxx.xxx.128)
May 24 18:32:50 myusername: [domain]:ddns.xxxxyz
May 24 18:32:50 myusername: [URL IPv4]:221.xxx.xxx.128
May 24 18:32:50 myusername: [DNS IPv4]:221.xxx.xxx.128
May 24 18:32:50 myusername: current IPV4 is the same as DNS IPV4 record, SKIP update
May 24 18:32:51 myusername: [URL IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:32:51 myusername: [DNS IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:32:51 myusername: current IPV6 is the same as DNS IPV6 record, SKIP update
May 24 18:32:51 myusername: DDNS updadte pass
May 24 18:32:51 ddns: Completed custom ddns update
May 24 18:33:21 watchdog: start ddns.
May 24 18:33:21 ddns: update CUSTOM , wan_unit 0
May 24 18:33:21 ddns: Clear ddns cache.
May 24 18:33:21 custom_script: Running /jffs/scripts/ddns-start (args: 221.xxx.xxx.128)
May 24 18:33:21 myusername: [domain]:ddns.xxxxyz
May 24 18:33:21 myusername: [URL IPv4]:221.xxx.xxx.128
May 24 18:33:21 myusername: [DNS IPv4]:221.xxx.xxx.128
May 24 18:33:21 myusername: current IPV4 is the same as DNS IPV4 record, SKIP update
May 24 18:33:22 myusername: [URL IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:33:22 myusername: [DNS IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:33:22 myusername: current IPV6 is the same as DNS IPV6 record, SKIP update
May 24 18:33:22 myusername: DDNS updadte pass
May 24 18:33:22 ddns: Completed custom ddns update
May 24 18:33:52 watchdog: start ddns.
May 24 18:33:52 ddns: update CUSTOM , wan_unit 0
May 24 18:33:52 ddns: Clear ddns cache.
May 24 18:33:52 custom_script: Running /jffs/scripts/ddns-start (args: 221.xxx.xxx.128)
May 24 18:33:52 myusername: [domain]:ddns.xxxxyz
May 24 18:33:53 myusername: [URL IPv4]:221.xxx.xxx.128
May 24 18:33:53 myusername: [DNS IPv4]:221.xxx.xxx.128
May 24 18:33:53 myusername: current IPV4 is the same as DNS IPV4 record, SKIP update
May 24 18:33:54 myusername: [URL IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:33:54 myusername: [DNS IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:33:54 myusername: current IPV6 is the same as DNS IPV6 record, SKIP update
May 24 18:33:54 myusername: DDNS updadte pass
May 24 18:33:54 ddns: Completed custom ddns update
May 24 18:34:24 watchdog: start ddns.
May 24 18:34:24 ddns: update CUSTOM , wan_unit 0
May 24 18:34:24 ddns: Clear ddns cache.
May 24 18:34:24 custom_script: Running /jffs/scripts/ddns-start (args: 221.xxx.xxx.128)
May 24 18:34:24 myusername: [domain]:ddns.xxxxyz
May 24 18:34:24 myusername: [URL IPv4]:221.xxx.xxx.128
May 24 18:34:24 myusername: [DNS IPv4]:221.xxx.xxx.128
May 24 18:34:24 myusername: current IPV4 is the same as DNS IPV4 record, SKIP update
May 24 18:34:25 myusername: [URL IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:34:25 myusername: [DNS IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:34:25 myusername: current IPV6 is the same as DNS IPV6 record, SKIP update
May 24 18:34:25 myusername: DDNS updadte pass
May 24 18:34:25 ddns: Completed custom ddns update
May 24 18:34:55 watchdog: start ddns.
May 24 18:34:55 ddns: update CUSTOM , wan_unit 0
May 24 18:34:55 ddns: Clear ddns cache.
May 24 18:34:55 custom_script: Running /jffs/scripts/ddns-start (args: 221.xxx.xxx.128)
May 24 18:34:55 myusername: [domain]:ddns.xxxxyz
May 24 18:34:55 myusername: [URL IPv4]:221.xxx.xxx.128
May 24 18:34:55 myusername: [DNS IPv4]:221.xxx.xxx.128
May 24 18:34:55 myusername: current IPV4 is the same as DNS IPV4 record, SKIP update
May 24 18:34:56 myusername: [URL IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:34:56 myusername: [DNS IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:34:56 myusername: current IPV6 is the same as DNS IPV6 record, SKIP update
May 24 18:34:56 myusername: DDNS updadte pass
May 24 18:34:56 ddns: Completed custom ddns update
May 24 18:35:26 watchdog: start ddns.
May 24 18:35:26 ddns: update CUSTOM , wan_unit 0
May 24 18:35:26 ddns: Clear ddns cache.
May 24 18:35:26 custom_script: Running /jffs/scripts/ddns-start (args: 221.xxx.xxx.128)
May 24 18:35:26 myusername: [domain]:ddns.xxxxyz
May 24 18:35:28 myusername: [URL IPv4]:221.xxx.xxx.128
May 24 18:35:28 myusername: [DNS IPv4]:221.xxx.xxx.128
May 24 18:35:28 myusername: current IPV4 is the same as DNS IPV4 record, SKIP update
May 24 18:35:29 myusername: [URL IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:35:29 myusername: [DNS IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:35:29 myusername: current IPV6 is the same as DNS IPV6 record, SKIP update
May 24 18:35:29 myusername: DDNS updadte pass
May 24 18:35:29 ddns: Completed custom ddns update
May 24 18:35:59 watchdog: start ddns.
May 24 18:35:59 ddns: update CUSTOM , wan_unit 0
May 24 18:35:59 ddns: Clear ddns cache.
May 24 18:35:59 custom_script: Running /jffs/scripts/ddns-start (args: 221.xxx.xxx.128)
May 24 18:35:59 myusername: [domain]:ddns.xxxxyz
May 24 18:35:59 myusername: [URL IPv4]:221.xxx.xxx.128
May 24 18:35:59 myusername: [DNS IPv4]:221.xxx.xxx.128
May 24 18:35:59 myusername: current IPV4 is the same as DNS IPV4 record, SKIP update
May 24 18:36:00 myusername: [URL IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:36:00 myusername: [DNS IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:36:00 myusername: current IPV6 is the same as DNS IPV6 record, SKIP update
May 24 18:36:00 myusername: DDNS updadte pass
May 24 18:36:00 ddns: Completed custom ddns update
May 24 18:36:30 watchdog: start ddns.
May 24 18:36:30 ddns: update CUSTOM , wan_unit 0
May 24 18:36:30 ddns: Clear ddns cache.
May 24 18:36:30 custom_script: Running /jffs/scripts/ddns-start (args: 221.xxx.xxx.128)
May 24 18:36:30 myusername: [domain]:ddns.xxxxyz
May 24 18:36:31 myusername: [URL IPv4]:221.xxx.xxx.128
May 24 18:36:31 myusername: [DNS IPv4]:221.xxx.xxx.128
May 24 18:36:31 myusername: current IPV4 is the same as DNS IPV4 record, SKIP update
May 24 18:36:32 myusername: [URL IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:36:32 myusername: [DNS IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:36:32 myusername: current IPV6 is the same as DNS IPV6 record, SKIP update
May 24 18:36:32 myusername: DDNS updadte pass
May 24 18:36:32 ddns: Completed custom ddns update
May 24 18:37:02 watchdog: start ddns.
May 24 18:37:02 ddns: update CUSTOM , wan_unit 0
May 24 18:37:02 ddns: Clear ddns cache.
May 24 18:37:02 custom_script: Running /jffs/scripts/ddns-start (args: 221.xxx.xxx.128)
May 24 18:37:02 myusername: [domain]:ddns.xxxxyz
May 24 18:37:02 myusername: [URL IPv4]:221.xxx.xxx.128
May 24 18:37:02 myusername: [DNS IPv4]:221.xxx.xxx.128
May 24 18:37:02 myusername: current IPV4 is the same as DNS IPV4 record, SKIP update
May 24 18:37:03 myusername: [URL IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:37:03 myusername: [DNS IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:37:03 myusername: current IPV6 is the same as DNS IPV6 record, SKIP update
May 24 18:37:03 myusername: DDNS updadte pass
May 24 18:37:03 ddns: Completed custom ddns update
May 24 18:37:33 watchdog: start ddns.
May 24 18:37:33 ddns: update CUSTOM , wan_unit 0
May 24 18:37:33 ddns: Clear ddns cache.
May 24 18:37:33 custom_script: Running /jffs/scripts/ddns-start (args: 221.xxx.xxx.128)
May 24 18:37:33 myusername: [domain]:ddns.xxxxyz
May 24 18:37:34 myusername: [URL IPv4]:221.xxx.xxx.128
May 24 18:37:34 myusername: [DNS IPv4]:221.xxx.xxx.128
May 24 18:37:34 myusername: current IPV4 is the same as DNS IPV4 record, SKIP update
May 24 18:37:35 myusername: [URL IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:37:35 myusername: [DNS IPv6]:2408:xxxx:xx:xxx:xxx:xxx:xxx:4c4e
May 24 18:37:35 myusername: current IPV6 is the same as DNS IPV6 record, SKIP update
May 24 18:37:35 myusername: DDNS updadte pass
May 24 18:37:35 ddns: Completed custom ddns update
also found some ddns args from nvram show |grep ddns :
Code:
ddns_check_retry=10
ddns_enable_x=1
ddns_hostname_old=ddns.xxxx.xyz
ddns_hostname_x=ddns.xxxx.xyz
ddns_hostname_x_old=
ddns_ipv6_update=1
ddns_last_wan_unit=0
ddns_passwd_x=
ddns_realip_x=0
ddns_refresh_x=5
ddns_regular_check=0
ddns_regular_period=60
ddns_replace_status=0
ddns_return_code=200
ddns_return_code_chk=200
ddns_server_x=CUSTOM
size: 85477 bytes (45595 left)
ddns_server_x_old=CUSTOM
ddns_status=1
ddns_transfer=
ddns_update_by_wdog=
ddns_updated=1
the issue seems error in:
Code:
May 24 18:33:21 watchdog: start ddns.
May 24 18:33:21 ddns: update CUSTOM , wan_unit 0
May 24 18:33:21 ddns: Clear ddns cache.
how to fix it and use the webui setting value to force update ddns?
Thanks
Last edited: