Veteran Member
Posts: 4,123
Registered: ‎05-15-2014
Kudos: 1540
Solutions: 280

[BUG] DDNS updates only one service

Firmware 1.10.0, ER-X

 

I have two DDNS service providers defined as shown on the picture

ddns.png

 

This ddclient config is written to /etc/ddclient/ddclient_pppoe0.conf ...and I can see there two entries, each for one of my service provider.

However, during DDNS update only the service provider that is in the config on last position gets updated and the first one is ignored.

 

For example, with config

root@router-brano:~# cat /etc/ddclient/ddclient_pppoe0.conf 
#
# autogenerated by vyatta-dynamic-dns.pl on Tue Feb 13 23:29:27 EST 2018
#
daemon=1m
syslog=yes
ssl=yes
pid=/var/run/ddclient/ddclient_pppoe0.pid
cache=/var/cache/ddclient/ddclient_pppoe0.cache
use=web, web='dyndns'


server=members.dyndns.org,protocol=dyndns2
max-interval=28d
login=xxx
password=yyy
xxx.mydomain.com

server=updates.opendns.com,protocol=dyndns2
max-interval=28d
login=xxx
password=yyy
xxx.mydomain.com

Only the last entry - opendns - will get updated on IP change.

@UBNT-afomins

Ubiquiti Employee
Posts: 1,256
Registered: ‎07-20-2015
Kudos: 1545
Solutions: 82

Re: [BUG] DDNS updates only one service

@BranoB:

> I have two DDNS service providers defined as shown on the picture

> Only the last entry - opendns - will get updated on IP change.

 

To troubleshoot this issue please do following:

  1. Enable ddclient debug logs by adding "-debug -verbose" arguments:
    sudo cp /opt/vyatta/sbin/vyatta-dynamic-dns.pl /opt/vyatta/sbin/vyatta-dynamic-dns.pl.bak
    sudo sed -i -e 's/\/usr\/sbin\/ddclient -file/\/usr\/sbin\/ddclient -debug -verbose -file/' /opt/vyatta/sbin/vyatta-dynamic-dns.pl
  2. Restart ddclient
  3. Show syslog:
    cat /var/log/messages|grep ddclient
Established Member
Posts: 1,915
Registered: ‎03-02-2016
Kudos: 469
Solutions: 148

Re: [BUG] DDNS updates only one service

I have two DDNS services configured and they both seem to update.

 

david@RoutyMcRouterson:~$ update dns dynamic interface eth0
david@RoutyMcRouterson:~$ show dns dynamic status
interface    : eth0
ip address   : 67.244.47.42
host-name    : home
last update  : Thu Feb 15 09:50:12 2018
update-status: good

interface    : eth0
ip address   : 67.244.47.42
host-name    : home.davidradin.com
last update  : Thu Feb 15 09:50:12 2018
update-status: good