What's new

DDNS, AX86U-PRO, inadyn isn't called after wan IP change ?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

JackJack

New Around Here
DDNS at first works as expected and record is registered on asuscomm.com

Problem arise when you go manually to network-map (first menu on left) and select "internet status" and apply for a switch off of "internet connection". Wait for changed to apply.... and then back to "on" to restore wan connection and get new IP.

After that I would expect to have DDNS to notify dns server for ip change, but looking at logs, nothing is called. And DDNS isn't updated (never)

this are logs from router manually disconnected to connected again with new IP
Apr 19 21:41:04 WAN_Connection: WAN was exceptionally disconnected.
Apr 19 21:41:43 rc_service: httpd 19415:notify_rc restart_wan_if 0
Apr 19 21:41:45 pppd[3579]: pppd 2.4.7 started by admin, uid 0
Apr 19 21:41:46 pppd[3579]: Connected to xx:xx:xx:xx:xx:xx via interface eth0
Apr 19 21:41:46 pppd[3579]: Connect: ppp0 <--> eth0
Apr 19 21:41:46 pppd[3579]: PAP authentication succeeded
Apr 19 21:41:46 pppd[3579]: peer from calling number xx:xx:xx:xx:xx:xx authorized
Apr 19 21:41:46 wsdd2[21811]: error: wsdd-mcast-v4: wsd_send_soap_msg: send
Apr 19 21:41:46 pppd[3579]: local IP address aa.bb.ccc.70
Apr 19 21:41:46 pppd[3579]: remote IP address 192.168.aaa.bbb
Apr 19 21:41:46 wsdd2[21811]: error: wsdd-mcast-v4: wsd_send_soap_msg: send
Apr 19 21:41:46 wan: finish adding multi routes
Apr 19 21:41:46 WireGuard: Stopping server.
Apr 19 21:41:47 WireGuard: Starting server.
Apr 19 21:41:47 ddns: WAN(0) IP is empty.(10)
Apr 19 21:41:47 rc_service: ip-up 3585:notify_rc start_vpnserver1
Apr 19 21:41:47 rc_service: ip-up 3585:notify_rc stop_samba
Apr 19 21:41:47 rc_service: waitting "start_vpnserver1" via ip-up ...
Apr 19 21:41:48 wsdd2[21811]: Terminated received.
Apr 19 21:41:48 Samba_Server: smb daemon is stopped
Apr 19 21:41:49 rc_service: ip-up 3585:notify_rc start_samba
Apr 19 21:41:49 Samba_Server: daemon is started
Apr 19 21:41:57 zcip_client: configured 169.bbb.ccc.ddd
Apr 19 21:41:59 WAN_Connection: WAN was restored.

and inadyn isn't called.....
don't know if "ddns: WAN(0) IP is empty.(10)" mean something... I'm NOT in dualwan and IP is taken correctly and shown in logs a second before.

Then if I go manually to DDNS page (under WAN) and hit "APPLY" with no changes.... it does correctly call inadyn

Apr 19 21:44:23 rc_service: httpd 19415:notify_rc restart_ddns
Apr 19 21:44:23 ddns: update WWW.ASUS.COM update@asus.com, wan_unit 0
Apr 19 21:44:23 ddns: Clear ddns cache.
Apr 19 21:44:23 ddns: Start Inadyn(10).
Apr 19 21:44:23 inadyn[4339]: In-a-dyn version 2.10.0 -- Dynamic DNS update client.
Apr 19 21:44:23 inadyn[4339]: Update forced for alias obfuscated.asuscomm.com, new IP# aaa.bbb.ccc.70
Apr 19 21:44:23 inadyn[4339]: alias address=<aaa.bbb.ccc.70>
Apr 19 21:44:23 inadyn[4339]: request<GET /ddns/update.jsp?hostname=obfuscated.asuscomm.com&myip=aaa.bbb.ccc.70&model=RT-AX86U_PRO&fw_ver=3.0.0.4.388.6_2 HTTP/1.0^M Authorization: Basic obfuscated^M Host: ns1.asuscomm.com^M User-Agent: inadyn/2.10.0 https://github.com/troglobit/inadyn/issues^M ^M >
Apr 19 21:44:24 inadyn[4339]: [response_update]HTTP/1.1 200 OK^M Date: Fri, 19 Apr 2024 19:44:24 GMT^M Server: Apache^M Content-Length: 0^M Connection: close^M Content-Type: text/html; charset=UTF-8^M ^M
Apr 19 21:44:24 inadyn[4339]: Updating cache for obfuscated.asuscomm.com

yet I've to test if ddns get update if there's a loss of connection disconnecting cable.... can't test it right now as router is hard to reach.

any idea?
thanks
 
Does your WAN IP actually change when you toggle the switch?

I know with my ISP, I either have to leave the modem off for hours or more, or change its Mac address in order to get a new IP provisioned.

If you don't have a new IP then there's no reason for any update to be pushed.
 
Does your WAN IP actually change when you toggle the switch?

I know with my ISP, I either have to leave the modem off for hours or more, or change its Mac address in order to get a new IP provisioned.

If you don't have a new IP then there's no reason for any update to be pushed.

Yes, it does change (verfied on logs and on router UI and from external web services)

Fact that ASUS router show new correct IP also means that it doesn't only get new ip, but it recognize it and get it.
(not a semple new IP under a GNAT service for a simple speak... in those caases I know that isn't easy as assigned real IP is always the same and external one can change anytime without notification or router knowledge)
 
I've made another test....

Disconnected WAN cable Instead of using UI to disable/enable WAN.
Router recognize disconnection (logs and in UI "internet status" as diconnected.....
And recognize correctly when WAN is up again and show correctly new assigned IP (if it changes).

But DDNS inadyn isn't called and so, no updates on dns side

I can provide screens if needed, even thought they don't provide any useful info
 
To resolve I had to use:
cru a dynpatch "*/5 * * * * /usr/sbin/inadyn --once"

every 5 minutes it call inadyn service. It's soft on DDNS side as it actually call server for update only if ip get changed.
As IP is buffered and checked internally in the router before deciding it need update request.

Verified on AX-86U-PRO
Firmware versions: 388.6.2 and 388.7
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top