setting up ddclient
NoOp
glgxg at sbcglobal.net
Thu Dec 20 19:18:40 UTC 2007
On 12/20/2007 09:05 AM, Wade Smart wrote:
>
> Seems odd that their code is wrong. Did you have these problems?
>
> Wade
>
>
Wade, I set up ddclient for my MIL's nurse just a few days ago. I go
tired of calling her & asking for the IP address. One thing that I found
most helpful in setting it up was to keep a browser on my hosts in
Dyndns so that I could see if it was finally changing automatically
within the set 5 minute intervals after I turned off the modem &
captured a new IP for testing.
(https://www.dyndns.com/account/services/hosts/)
I tried the recommended scripts etc., and in the end I found:
1. Remove/purge all of the previous attempts (sudo apt-get remove
--purge ddclient) first.
2. Install ssh & ssh socket so that you can send your password via ssh
instead of in the clear:
sudo apt-get install ssh libio-socket-ssl-perl
Note: ssh w/ddclient won't work without libio-socket-ssl-perl, so make
sure that you install that even if you have ssh already installed.
2. Reinstall ddclient from the repo (sudo apt-get install ddclient). At
the prompts enter:
Dynamic DNS service provider:
www.dyndns.com
DynDNS fully qualified domain names:
<your dyndns host name, i.e., somename.homelinux.org>
Username for dynamic DNS service:
your dyndns username
Password
your dyndns password
Enter the interface which is used for using dynamic DNS service
web
3. Modify the /etc/ddclient.conf to send the password using
ssh/etc/ddclient.conf and to properly check for the IP address:
$ gksu gedit /etc/ddclient.conf
================================
# Configuration file for ddclient generated by debconf
#
# /etc/ddclient.conf
daemon=300 <== ADD
pid=/var/run/ddclient.pid
ssl=yes <== ADD
use=web, web=checkip.dyndns.com/, web-skip='IP Address' <== ADD[1]
login=your-username
password=your-password
protocol=dyndns2
server=members.dyndns.org
================================
ADD[1] replace use=if, if=web
Ref:
https://www.dyndns.com/support/kb/using_ddclient_with_dyndns_services.html
[Secure Updates]
Now ddclient is set to run as a daemon. Because you had other ddclient
configs previously, check:
gksu gedit /etc/default/ddclient
Check to make sure that:
run_ipup="false"
and
run_daemon="true"
daemon_interval="300"
Note: you can set the interval shorter or longer, but if you do, also
reset your /etc/ddclient.conf to match.
https://bugs.launchpad.net/ubuntu/+source/ddclient/+bug/152875
Now, just to be sure everything sticks I generally reboot at this point,
then check the status afterwards:
sudo /etc/init.d/ddclient status
You should see:
Status of Dynamic DNS service update utility: ddclient is running
However, that may not always catch problems in the ddclient.conf file,
so issue:
sudo /etc/init.d/ddclient restart
if no: WARNING: file /etc/ddclient.conf, line x
error then you probably are good to go. You can test the above warning
by taking out the end ' (quote) in
use=web, web=checkip.dyndns.com/, web-skip='IP Address'<==this last '
and then do sudo /etc/init.d/ddclient restart and watch it complain.
Then I obtain a new IP address/lease from my service provider (shutting
off the modem, having my router request a new lease, whatever) & monitor
https://www.dyndns.com/account/services/hosts/ to see if the change
actually makes it to dyndns. Also monitor /var/log/syslog to watch the
changes there as well.
More information about the ubuntu-users
mailing list