OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: spottaaja1 on June 14, 2019, 10:52:58 am

Title: Here's a fix for DynDNS EuroDNS for Multi-WAN setups
Post by: spottaaja1 on June 14, 2019, 10:52:58 am
Hello!

Had to add the --interface option for curl to get EuroDNS working on my Multi-WAN setup. See red bolded below.

            case 'eurodns':
                curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
                curl_setopt($ch, CURLOPT_USERPWD, $this->_dnsUser.':'.$this->_dnsPass);
                curl_setopt($ch, CURLOPT_INTERFACE, $this->_dnsIP);
                $server = "https://update.eurodyndns.org/update/";
                $port = "";
                if ($this->_dnsPort) {
                    $port = ":" . $this->_dnsPort;
                }
                curl_setopt($ch, CURLOPT_URL, $server .$port . '?hostname=' . $this->_dnsHost . '&myip=' . $this->_dnsIP);
                break;