Bug #8014

DynDNS wildcard option doesn't work for provider Loopia

Added by Kristoffer Ekenstam almost 2 years ago. Updated 13 days ago.

Dynamic DNS
Target version:
Start date:
Due date:
% Done:


Estimated time:
Affected Version:
Affected Architecture:


The DynDNS wildcard option doesn't work for provider Loopia.

It seems that this line never results in $this->_dnsWildcard being set to "ON":

if (isset($this->_dnsWildcard) && $this->_dnsWildcard != "OFF") $this->_dnsWildcard = "ON";

The same check is done for many providers, so maybe this problem doesn't only affect Loopia.

Here's a fix for Loopia, that works for me at least:

case 'loopia':
    $needsIP = TRUE;
    if(isset($this->_dnsWildcard) && $this->_dnsWildcard == TRUE) {
        $this->_dnsWildcard = "ON";
    else {
        $this->_dnsWildcard = "OFF";
    curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser.':'.$this->_dnsPass);
    curl_setopt($ch, CURLOPT_URL, '' . $this->_dnsHost . '&myip=' . $this->_dnsIP . '&wildcard=' . $this->_dnsWildcard . '&mx=' . $this->_dnsMX . '&backmx=NO');

Please note that the host(CURLOPT_URL) is changed to, as stated on Loopia's support page:

Also reported in this forum thread:

Associated revisions

Revision cedc8184 (diff)
Added by kristoffer-ekenstam 25 days ago

Fixed #8014

Fixed wildcard variable not being set correctly.
Updated CURLOPT_URL according to provider's documentation.
Added support for MX records.


#1 Updated by Jim Pingle 28 days ago

  • Status changed from New to Resolved

PR was merged a long time ago.

#2 Updated by Kristoffer Ekenstam 27 days ago

PR 3753 didn't solve this problem, have checked the latest version.

$this->_dnsWildcard is either ON or 1. Never OFF.
CURLOPT_URL needs to be updated.

The solution above also adds support for MX records.

#3 Updated by Jim Pingle 27 days ago

  • Status changed from Resolved to New

OK, can you submit that change as a pull request on Github then? Thanks!

#5 Updated by Jim Pingle 25 days ago

  • Target version set to 2.5.0


#6 Updated by Jim Pingle 19 days ago

  • Status changed from New to Pull Request Review

#7 Updated by Renato Botelho 13 days ago

  • Status changed from Pull Request Review to Feedback
  • Assignee set to Renato Botelho
  • % Done changed from 0 to 100

PR has been merged. Thanks!

Also available in: Atom PDF