Clouflare (free tier) and DDNS settings issue

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


Joined: 02 Jan 2007
Posts: 199

PostPosted: Wed Nov 16, 2022 0:39    Post subject: Clouflare (free tier) and DDNS settings issue Reply with quote
I'm trying to move away from no-ip ddns and use Cloudflare directly. I have the zoneID, worker with read permissions and edit permissions to the DNS entry set. Here is the error I'm getting.

Invalid zone. Enter the Cloudflare zone in the username field.

The only ZoneID I see is on the overview page on the lower right. I also have my API key set as the password as suggested in the inadyn documentation and hostname under hostname of course. Cloudflare is selected as well. I have searched for some documentation and I'm afraid my googlefu has failed me. Suggestions?

Thanks

.:EDIT:. I also have use SSL and external IP check enabled

_________________
Asus RT-N66R 50841 big
Netgear WNDR4500v2 50841 mega
Sponsor
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2927
Location: Germany

PostPosted: Thu Nov 17, 2022 10:47    Post subject: Reply with quote
Code:
# www.cloudflare.com
provider cloudflare.com {
    username = zone.name
    password = api_token # Create a unique custom api token with the following permissions: Zone.Zone - Read, Zone.DNS - Edit.
    hostname = hostname.zone.name
    ttl = 1 # optional, value of 1 is 'automatic'.
    proxied = false # optional.


this is simply the host address

username = domain.com
hostname = subdomain.domain.com

Quote:
hostname: the name of the record you want to update (e.g. subdomain.mydomain.com)
username: the name of the zone where the record is defined. (e.g. mydomain.com)


Maybe it will be changed because the label "username is misleading".
Veritech
DD-WRT User


Joined: 02 Jan 2007
Posts: 199

PostPosted: Sun Nov 20, 2022 17:17    Post subject: Reply with quote
I'm still getting zone not found. So far I followed your suggestions from the documentation and neither my zoneID nor my fqdn are working. I did see some suggestions to set an A record as dynamic.fqdn.tld and have CNAME records for any other subdomain but I haven't tried this yet. This was suggested in older forums prior to DD-WRT having full support in the GUI. I am using the Token key as the password for the API connection and renamed the token entry to my fqdn for testing and still no go. Thank you for any further insight you can provide.

.:EDIT:. Does it make a difference if the fqdn is proxied through CloudFlare?

_________________
Asus RT-N66R 50841 big
Netgear WNDR4500v2 50841 mega


Last edited by Veritech on Sun Nov 20, 2022 17:34; edited 1 time in total
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2927
Location: Germany

PostPosted: Sun Nov 20, 2022 17:28    Post subject: Reply with quote
I can only provide you with a link that explains the configuration (in my opinion) quite well.

https://github.com/blackjid/inadyn-cloudflare

Maybe I'll test it myself the next few days.
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2927
Location: Germany

PostPosted: Sun Nov 20, 2022 17:54    Post subject: Reply with quote
Veritech wrote:

.:EDIT:. Does it make a difference if the fqdn is proxied through CloudFlare?

You can see that from the inadyn example of confugiration.
Code:
 proxied = false # optional.

The default setting is "proxied" so I assume it makes a difference.
Veritech
DD-WRT User


Joined: 02 Jan 2007
Posts: 199

PostPosted: Sun Nov 20, 2022 21:46    Post subject: Reply with quote
I appreciate checking on your hardware. I have gotten a little progess where it complains the API call may be malformed. I have set up the API token per the instructions with no change. The only thing I don't have is a worker. The only info I saw it mentioned is in part of the instruction you provided setting up the Ubiquti device.
_________________
Asus RT-N66R 50841 big
Netgear WNDR4500v2 50841 mega
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