Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dyndns: cloudflare not working with some tlds #1136

Closed
nwpr opened this issue Apr 29, 2017 · 8 comments
Closed

dyndns: cloudflare not working with some tlds #1136

nwpr opened this issue Apr 29, 2017 · 8 comments

Comments

@nwpr
Copy link

nwpr commented Apr 29, 2017

CloudFlare dyndns is broken with subdomains or international TLDs with many parts (like .co.uk). The bug exists since commit opnsense/core@55586d3 . As the current code was taken from pfsense, they already have a fix for that which can be referred to. (https://redmine.pfsense.org/projects/pfsense/repository/revisions/2446fffa5932e8debcaf165bfaf5492cea429c60)

@fichtner
Copy link
Member

Ideally, we'd need test credentials and a test case to fix this. No contributor uses cloudflare, so we cannot fix easily.

@Nornode
Copy link

Nornode commented Jan 16, 2019

Hey, this still seems valid...
I'm happy to help to troubleshoot this issue.

@fichtner fichtner transferred this issue from opnsense/core Jan 16, 2019
@broglea
Copy link

broglea commented Jun 21, 2019

Bump bump @Nornode did you find a solution at all?

@mihaibalaci
Copy link

is there a functional version already? just asking. i can offer testing

@tbela99
Copy link

tbela99 commented Jan 26, 2020

I think here is the problem

"X-Auth-Key: {$this->_dnsPass}",

Using "X-Auth-Key: api_token" does not seem to work with the api token

We should use "Authorization: Bearer api_token" instead

I have come to that conclusion after trying my api token from the command line.

@tbela99
Copy link

tbela99 commented Jan 26, 2020

image

I removed headers X-Auth-Key and replaced with header "Authorization: Bearer api_token". I used a token with permission to list zones and it worked fine

 curl_setopt($ch, CURLOPT_HTTPHEADER, array(
                    "X-Auth-Email: {$this->_dnsUser}",
                    "Authorization: Bearer {$this->_dnsPass}",
                    'Content-Type: application/json'
                ));

@tbela99
Copy link

tbela99 commented Mar 4, 2020

Can you please reopen this issue? As I said replacing "X-Auth-Key:" with "Authorization: Bearer" solve the issue. There is no need for "X-Auth-Email:"

@tbela99
Copy link

tbela99 commented Mar 7, 2020

it looks like it is being fixed here 7592767 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants