OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: jerrac on July 01, 2017, 10:42:36 pm

Title: Dynamic DNS on CloudFlare does not seem to work
Post by: jerrac on July 01, 2017, 10:42:36 pm
I have the Dynamic DNS configured to use CloudFlare.com. It is supposed to keep home.davidreagan.net pointed at my home IP address. When I click "Save and force update" the record on CloudFlare.com does not change to my new IP address.

It has the correct username and password for CloudFlare. I double checked that.

home.davidreagan.net is configured as an A record on CloudFlare's DNS page.

I enabled verbose logging, but I have not found where to view those logs yet.

Do you have any suggestions on how to troubleshoot this?
Title: Re: Dynamic DNS on CloudFlare does not seem to work
Post by: jerrac on July 01, 2017, 10:44:24 pm
Ah hah. System -> Log file shows this:

Quote
Jul 1 12:45:31    opnsense: /services_dyndns_edit.php: Dynamic DNS (home.davidreagan.net): UNKNOWN ERROR - Invalid request headers
Jul 1 12:45:31    opnsense: /services_dyndns_edit.php: Dynamic DNS (home.davidreagan.net): PAYLOAD: {"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6103,"message":"Invalid format for X-Auth-Key header"}]}],"messages":[],"result":null}
Jul 1 12:45:31    opnsense: /services_dyndns_edit.php: Dynamic DNS (home.davidreagan.net): Current Service: cloudflare
Jul 1 12:45:31    opnsense: /services_dyndns_edit.php: Dynamic DNS (home.davidreagan.net): _checkStatus() starting.
Jul 1 12:45:31    opnsense: /services_dyndns_edit.php: Dynamic DNS (home.davidreagan.net): _update() starting.
Jul 1 12:45:31    opnsense: /services_dyndns_edit.php: Dynamic DNS (home.davidreagan.net): running get_failover_interface for wan. found em0
Jul 1 12:45:31    opnsense: /services_dyndns_edit.php: Dynamic DNS (home.davidreagan.net): 67.171.230.238 extracted
Jul 1 12:45:31    opnsense: /services_dyndns_edit.php: Dynamic DNS: updatedns() starting
Title: Re: Dynamic DNS on CloudFlare does not seem to work
Post by: jerrac on July 10, 2017, 10:21:31 pm
It's been long enough I don't think a bump is a bad thing. Anyone have any ideas for me?
Title: Re: Dynamic DNS on CloudFlare does not seem to work
Post by: franco on July 11, 2017, 05:35:19 pm
There is a bug with cloudflare below but your issue seems more grave

https://github.com/opnsense/core/issues/1572

Fixing cloudflare is a problem of providing test credentials or patches, so that we can make progress. Can only try... :)


Cheers,
Franco
Title: Re: Dynamic DNS on CloudFlare does not seem to work
Post by: jerrac on July 13, 2017, 11:33:31 pm
So, you need a CloudFlare account to use for testing?
Title: Re: Dynamic DNS on CloudFlare does not seem to work
Post by: franco on July 14, 2017, 04:22:26 pm
Yes, that would help to diagnose the issue.