SOLVED: DDNS update problems

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
objecttothis
DD-WRT User


Joined: 19 Nov 2014
Posts: 86

PostPosted: Thu Jan 12, 2023 22:37    Post subject: SOLVED: DDNS update problems Reply with quote
Edit: Solved by changing Use SSL to Yes (https://community.cloudflare.com/t/update-ddns-ipaddress-by-using-ddclient-but-301-received-always/29570). I'll leave this up for anyone else running into it.

Running a WRT1900ACSv2 on r51011, but the same problem was happening on the WRT1900ACv1 running r51011 that I just replaced yesterday.

DDNS won't update. I thought the issue was freedns.afraid.org so since I have a domain on cloudflare, I set that up but got a similar response. I checked to make sure that I wasn't double natted (not that it would matter). I also thought that perhaps it was my Pi-hole blocking the transaction, so I whitelisted the ddns domain and the providers. When that didn't work, I just switched the dns of the router to Cloudflare (1.1.1.1). Unfortunately none of that fixes the issue, so I don't think it's the router's DNS setting.

Enable Service: freedns.afraid.org
Username: guest
Password: guest
Hostname: subdomain.domain.tld,[freedns.afraid.org key]
Use External IP Check: No
Use SSL: No
Force Update Interval: 1

Service Status:
In-a-dyn version 2.10.0 -- Dynamic DNS update client.
Startup delay: 30 sec ...
Failed resolving hostname [domain redacted],[key redacted] Name does not resolve
Update forced for alias [domain redacted],[key redacted] new IP# [IP4 redacted]
=> ERROR: Could not authenticate.

I had been meaning to switch over to cloudflare for DDNS anyway, so I tried that. I setup the API with Zone, Zone: Read and Zone, DNS: Edit Permissions then tested the API (https://alexskra.com/blog/dynamc-dnsddns-with-openwrt-and-cloudflare/)


PS C:\Users\[redacted]> curl -X GET "https://api.cloudflare.com/client/v4/user/tokens/verify" -H "Authorization: Bearer [redacted key]" -H "Content-Type:application/json"
{"result":{"id":"[redacted result id]","status":"active"},"success":true,"errors":[],"messages":[{"code":10000,"message":"This API Token is valid and active","type":null}]}

In dd-wrt

Enable Service: Cloudflare
Username: domain.tld
Password: [cloudflare provided API key]
Hostname: subdomain.domain.tld
Use External IP Check: No
Use SSL: No <-- this was the problem
Force Update Interval: 1

The response was similar:
In-a-dyn version 2.10.0 -- Dynamic DNS update client.
Startup delay: 30 sec ...
Failed resolving hostname [redacted]: Name does not resolve
Update forced for alias [redacted], new IP# [redacted]
Received status 301, don't know what that means.
Zone '[redacted]' not found.
Error response from DDNS server, exiting!

Is ddns on r51011 broken or is there something I'm doing incorrectly? freedns.afraid.org has worked fine in the past. The fact that both freedns.afraid.org and cloudflare are giving similar responses tells me something is not likely wrong with both ddns providers.

Not likely relevant, but people get pissy when you don't tell them everything:
- I have an OpenVPN server on this router.
- I'm doing some port forwarding.
- I have no firewall rules setup.
- I have a VAP for guest wireless access.



apitoken.jpg
 Description:
cloudflare token settings
 Filesize:  92.86 KB
 Viewed:  698 Time(s)

apitoken.jpg



cloudflareconfirm.jpg
 Description:
API works
 Filesize:  37.45 KB
 Viewed:  698 Time(s)

cloudflareconfirm.jpg



failedfreedns.jpg
 Description:
Failed resolving hostname for freedns
 Filesize:  94.65 KB
 Viewed:  698 Time(s)

failedfreedns.jpg



_________________
Delivering pure fact does not mean you are rude. Ignoring social contract in the delivery of pure fact does make you rude.


Last edited by objecttothis on Thu Jan 12, 2023 23:01; edited 2 times in total
Sponsor
objecttothis
DD-WRT User


Joined: 19 Nov 2014
Posts: 86

PostPosted: Thu Jan 12, 2023 22:39    Post subject: Reply with quote
Here's the results of the cloudflare ddns


failedddns.jpg
 Description:
 Filesize:  89.61 KB
 Viewed:  695 Time(s)

failedddns.jpg



_________________
Delivering pure fact does not mean you are rude. Ignoring social contract in the delivery of pure fact does make you rude.
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3004
Location: Germany

PostPosted: Fri Jan 13, 2023 5:52    Post subject: Reply with quote
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1275778
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum