Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DynamicDNS clients (easyDNS wildcard fix)

    DHCP and DNS
    1
    1
    2.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bdub
      last edited by

      Hi just installed PFSense this sunday and at least for a laymen really amazing what you can do with it in a day.

      One issue I did hit was on easyDNS dynamicDNS wildcard update was not processing.

      From easyDns website http://support.easydns.com/tutorials/dynamicUpdateSpecs.php

      wildcard = either "ON" or "OFF", if "ON" sets a wildcard host record for the domain being updated equal to the IP address specified in "myip"

      The original was sending a 1 for ON, so I added this and it works, but forewarned I don't know PHP.

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

      I also changed the server based on an email from easyDNS, but I think the existing one worked as well.

      $server = "http://api.cp.easydns.com/dyn/tomato.php";
      

      The case statement in: function updatedns

                                      case 'easydns':
                                              $needsIP = TRUE;
                                              if (isset($this->_dnsWildcard)) $this->_dnsWildcard = "ON";
                                              curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
                                              curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser.':'.$this->_dnsPass);
                                              $server = "http://api.cp.easydns.com/dyn/tomato.php";
                                              $port = "";
                                              if($this->_dnsServer)
                                                      $server = $this->_dnsServer;
                                              if($this->_dnsPort)
                                                      $port = ":" . $this->_dnsPort;
                                              //log_error("Updating easydns wildcard right before send: {$this->_dnsWildcard}");
                                              curl_setopt($ch, CURLOPT_URL, $server . $port . '?hostname=' . $this->_dnsHost . '&myip=' . $this->_dnsIP . '&wildcard=' . $this->
      _dnsWildcard . '&mx=' . $this->_dnsMX . '&backmx=' . $this->_dnsBackMX);
                                              break;
      
      

      Anyways great product, thanks for all the effort.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.