Camaleón wrote:
On Tue, 06 Dec 2011 15:15:48 -0600, Hugo Vanwoerkom wrote:
Camaleón wrote:
On Mon, 05 Dec 2011 07:34:01 -0600, Hugo Vanwoerkom wrote:
I use ddclient to update the IP of my server in dyndns, but it doesn't
work: the IP does not get set. It has been working for years.
I have to go manually into dyndns and set the IP and the one that it
has is stale.
All I see is:
hugo@HDBB:~$ ps ax | grep -i ddclient
1792 ? S 0:00 ddclient - sleeping for 50 seconds
There are no ddclient messages in syslog.
ii ddclient 3.8.0-11.3 address
updating utility for dynamic DNS services
How does one debug this?
I've never used this application before, but you can try what ddclient
web page says ("Documentation" section)¹ and launch it in debug+verbose
mode:
***
ddclient -daemon=0 -debug -verbose -noquiet ***
¹http://sourceforge.net/apps/trac/ddclient
Instead I started looking for when it worked correctly and what the
ddclient.config was at that moment. Then I copied that .config over and
that made it work correctly.
Which brings up an interesting question: what are the answers you have
to give to dpkg-reconfigure in order to end up with a desired
ddclient.config? I.e. I know the .config I want but I don't know how to
get that through dpkg-reconfigure.
By using "reverse engineering"? :-)
Make a diff between the two files and you will have a clue on what can be
the changes/differences.
The desirec ddclient.config is:
protocol=dyndns2
use=web, web=checkip.dyndns.com, web-skip='IP Address'
server=members.dyndns.org
login=xxxxxxxxx
password='yyyyyy'
esquipulas-index.dyndns.org
But I don't know how to get there with dpkg-reconfigure.
Then you have to keep under lock the ".config" file that works and save
it as a treasure so it survives between updates/upgrades. That way you
can forget about "dpkg-reconfigure".
In the meantime I have changed the ddclient script in /etc/init.d to
have -verbose in the OPTIONS. But I may have to add the other 2 that you
mentioned.
Be careful with this, maybe the daemon is so verbose that floods your
logs :-?
It does it quite nicely BTW. Prints out all sorts of good stuff:
Dec 6 20:09:49 HDBB ddclient[1687]: CONNECT: checkip.dyndns.com
Dec 6 20:09:49 HDBB ddclient[1687]: CONNECTED: using HTTP
Dec 6 20:09:49 HDBB ddclient[1687]: SENDING: GET / HTTP/1.0
Dec 6 20:09:49 HDBB ddclient[1687]: SENDING: Host: checkip.dyndns.com
Dec 6 20:09:49 HDBB ddclient[1687]: SENDING: User-Agent: ddclient/3.8.0
Dec 6 20:09:49 HDBB ddclient[1687]: SENDING: Connection: close
Dec 6 20:09:49 HDBB ddclient[1687]: SENDING:
Dec 6 20:09:49 HDBB ddclient[1687]: RECEIVE: HTTP/1.1 200 OK#015
Dec 6 20:09:49 HDBB ddclient[1687]: RECEIVE: Content-Type: text/html#015
Dec 6 20:09:49 HDBB ddclient[1687]: RECEIVE: Server:
DynDNS-CheckIP/1.0#015
Dec 6 20:09:49 HDBB ddclient[1687]: RECEIVE: Connection: close#015
Dec 6 20:09:49 HDBB ddclient[1687]: RECEIVE: Cache-Control: no-cache#015
Dec 6 20:09:49 HDBB ddclient[1687]: RECEIVE: Pragma: no-cache#015
Dec 6 20:09:49 HDBB ddclient[1687]: RECEIVE: Content-Length: 107#015
Dec 6 20:09:49 HDBB ddclient[1687]: RECEIVE: #015
Dec 6 20:09:49 HDBB ddclient[1687]: RECEIVE:
<html><head><title>Current IP Check</title></head><body>Current IP
Address: 18$
Dec 6 20:09:49 HDBB ddclient[1687]: SUCCESS:
esquipulas-index.dyndns.org: skipped: IP address was already set to
189.188.14$
That is with /etc/init.d/ddclient modified OPTIONS with -verbose -debug
-noquiet.
Hugo
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jbmi94$dsj$1...@dough.gmane.org