DDNS update URL

New to the forum? Introduce yourself, chit chat and chew the fat.
tombaer
Posts: 3
youtube meble na wymiar Warszawa
Joined: Thu Apr 25, 2024 3:28 am

DDNS update URL

Post by tombaer »

Hello everyone,

I'm new here and have a question that I'm not sure where to put. I would like to find out the update url of the provider myasustor.com in order to add it to my router. Unfortunately I am not able to find it anywhere.
Has anyone had the same problem?
best regards

tombaer
User avatar
Nazar78
Posts: 2235
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore

Re: DDNS update URL

Post by Nazar78 »

Code: Select all

curl -d 'json={"json":{
		"email":"username@email.tld",
		"pwd":"hash-password",
		"sn":"nas-serial-number",
		"wan_ip":"ipv4-address",
		"wan_ipv6":"ipv6-address",
		"disable_auto_set":true
	}}' \
	'https://asustornasapi.asustor.com/v2/check_cloud.php?method=2'
Get the details from /usr/builtin/etc/inadyn/inadyn.conf:

Code: Select all

allow-ipv6 = true
verify-address = false
period = 300
forced-update = 1800
provider default@myasustor.com {
	username = "username@email.tld"
	password = "nas-serial-number:hash-password"
	hostname = "hostname"
	checkip-command = "/usr/builtin/bin/inadyn_util get_wan_ip"
}
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
tombaer
Posts: 3
Joined: Thu Apr 25, 2024 3:28 am

Re: DDNS update URL

Post by tombaer »

Hi Nazar78,

thank you for your reply. I tried your suggestion and the result I get is: {"success":true,"ip":"blabla"}.
What I am actually looking for is an url like:

https://asustornasapi.asustor.com/v2/check_cloud.php?email=<username>&pwd=<pass>&wan_ip=<ipaddr>

where the placeholders in angle brackets are filled in with my user data, I guess. For explanation, see screenshot of the input mask of my router "fritzbox 7530 AX". (No attachment possible: Sorry, the board attachment quota has been reached.)

I can not transfer the "json" part of your suggestion to an url as I need it. Does this even exist?

Best regards,
tombaer
User avatar
Nazar78
Posts: 2235
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore

Re: DDNS update URL

Post by Nazar78 »

Replace the EOL lines with spaces and remove the backslash \ all become one single line.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
tombaer
Posts: 3
Joined: Thu Apr 25, 2024 3:28 am

Re: DDNS update URL

Post by tombaer »

No this is not what I am looking for.

What I am actually looking for is an url like:

https://asustornasapi.asustor.com/v2/ch ... ip=<ipaddr>

greets
User avatar
Nazar78
Posts: 2235
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore

Re: DDNS update URL

Post by Nazar78 »

It requires post json data and doesn't work with uri query strings. You can try use your fritzbox terminal if available.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
tombaer
Posts: 3
Joined: Thu Apr 25, 2024 3:28 am

Re: DDNS update URL

Post by tombaer »

Okay then i will probably have to switch to another ddns provider. Thanks for your help anyway!

greets