My ongoing experiences with Ubuntu, and later Mythbuntu, as a media center with MythTV. I'm also using the system for a virtual machine server, a mediawiki server and a general all around home infrastructure base.

Friday, April 24, 2009

whatismyip quit working for ddclient... change to

Suddenly ddclient started generating errors trying to determine my local IP address:
WARNING: cannot connect to socket: IO::Socket::INET: connect: Connection timed out
WARNING: unable to determine IP address
Pointing a browser at seemed to confirm the site is down - just kept getting connection refused.

Well, time to find an alternative for whatismyip. Poking around with google, I found this page which described using Following those directions I edited /etc/ddclient.conf and replaced the following line:

use=web,, web-skip='Current IP Address: '
And then ran ddclient again to check:
# /etc/cron.daily/ddclient
No output, all seems well....But no, it isn't. Visiting DynDNS indicates I still haven't updated my information recently. Remembering my previous experience with ddclient hanging, I checked for a hung process and sure enough, there was one:

# ps auxwww | grep ddcl
root 15725 0.0 0.0 7548 3032 ? S Mar29 0:00 ddclient - read from port 80
root 30771 0.0 0.0 3240 804 pts/2 S+ 21:26 0:00 grep ddcl
So I killed it:
# kill -9 15725
And reran ddclient (I found I hat to use the -force flag to get it to do anything):
# /usr/sbin/ddclient -force

And all was good.
Post a Comment