https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162017-11-23T19:59:47ZpfSense bugtrackerpfSense - Bug #8071: DNSimple support for Dynamic DNS no longer workinghttps://redmine.pfsense.org/issues/8071?journal_id=352222017-11-23T19:59:47ZPeter Wilson
<ul></ul><p>The offending file is:<br />/etc/inc/dyndns.class</p>
<p>pfSense has the ability to edit files from the webpage GUI (Diagnostics Menu -> Edit File), so just change the existing case statement about half-way through the file, save and you're good to go. I'm not going to check-in changes, I'll leave that to others, sorry.</p>
<pre>
case 'dnsimple':
/*
Uses DNSimple's REST API. IP address and TTL sent as JSON, everything else encoded into HTTP Header or URL.
Documentation: https://developer.dnsimple.com/v2/zones/records/
EXAMPLE: UPDATE a Zone Record.
PATCH /:account/zones/:zone/records/:record
curl -H 'Authorization: Bearer <token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-X PATCH \
-d '<json>' \
https://api.dnsimple.com/v2/1010/zones/example.com/records/5
*/
$needsIP = TRUE;
$server = 'https://api.dnsimple.com/v2/';
$jsondata = '{"content":"' . $this->_dnsIP . '","ttl":"' . $this->_dnsTTL . '"}';
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json', 'Content-Type: application/json', 'Authorization: Bearer ' . $this->_dnsPass));
curl_setopt($ch, CURLOPT_URL, $server . $this->_dnsUser . '/zones/' . $this->_dnsHost . '/records/' . $this->_dnsZoneID);
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsondata);
break;
</pre> pfSense - Bug #8071: DNSimple support for Dynamic DNS no longer workinghttps://redmine.pfsense.org/issues/8071?journal_id=376162018-08-10T07:38:42ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li><li><strong>Target version</strong> set to <i>2.4.4</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>PR merged</p> pfSense - Bug #8071: DNSimple support for Dynamic DNS no longer workinghttps://redmine.pfsense.org/issues/8071?journal_id=376202018-08-10T10:57:44ZJim Pingle
<ul></ul><p>PR URL: <a class="external" href="https://github.com/pfsense/pfsense/pull/3946">https://github.com/pfsense/pfsense/pull/3946</a></p> pfSense - Bug #8071: DNSimple support for Dynamic DNS no longer workinghttps://redmine.pfsense.org/issues/8071?journal_id=383462018-09-13T08:42:20ZJim Pingle
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>No feedback after a month, we do not have accounts there to test. Assuming it's OK based on lack of complaints.</p>