> Don't know why but my PPP interface sometimes isn't working right away and > needs some time to settle, so sometimes when ddclient runs from > /etc/ppp/ip-up.d/ddclient it is unable to set the new IP. > My workaround was to add a "sleep 3" in /etc/default/ddclient.
I see the same problem here (running Debian stable on an OrangePi box). More specifically, /etc/ppp/ip-up.d/ddclient almost never works for me, and in that script ddclient returns the following: WARNING: cannot connect to www.dnsdynamic.org:80 socket: IO::Socket::INET: Bad hostname 'www.dnsdynamic.org' FAILED: updating <blabla>: Could not connect to www.dnsdynamic.org. Same with freedns.afraid.org. I changed that file to end with (sleep 10; /usr/sbin/ddclient -syslog -ip $PPP_LOCAL)& and it seems to have fixed my problem, so it looks like the ip-up.d script is run "too early" (i.e. before the DNS is properly setup). Stefan PS: BTW, this ddclient script is brittle. E.g. the line if [ ! $if = $PPP_IFACE ]; then should be replaced with something like if [ ! "x$if" = "x$PPP_IFACE" ]; then