After googling around a bit, and looking at different examples, I came up with a configuration for ddclient that updates both my companies DynDNS host (which I use to get access to certain intranet stuff from home) and the OpenDNS Dynamic IP address, so OpenDNS can collect stats and customize our experience, etc. Leave a comment if you need something explained or need more info on how I set ddclient up. (Note: Values surrounded with [brackets] are names changed to protect the innocent :-)
# Configuration file for ddclient
#
# /etc/ddclient.conf
daemon=300 # check every 300 seconds
syslog=yes # log update msgs to syslog
pid=/var/run/ddclient.pid
ssl=yes
### Select one of these options to determine your IP address
## via hardware interface (if you don't have a router/firewall)
#use=if, if=eth0
## via our CheckIP server
use=web, web=checkip.dyndns.com/, web-skip='Current IP Address: '
## from the status page for a linksys router/firewall
#use=linksys, fw=linksys, fw-login=admin, fw-p
#DynDNS for [dyndns_host_name, e.g. bob.ath.cx or bob.dyndns.org]
################################################################
server=members.dyndns.org
protocol=dyndns2
login=[login]
password=[password]
[dyndns_host_name], [dyndns_host_name_2]
#Dynamic IP for [OPENDNS_NETWORK_NAME] OpenDNS account
######################################################
server=updates.opendns.com
protocol=dyndns2
login=[login]
password=[password]
[OPENDNS_NETWORK_NAME]
5 comments:
How can I try if it works?
Thank's
Mk
@Mk - I am assuming you mean "How can I tell if it is working, or see that it is working." If that is the case, you'll want to start the ddclient service, or restart it, and look in the daemon message log, which on my Ubuntu box is located at:
/var/log/daemon.log
If you edit this file, or do a cat on it from the command line, you should see some messages like these (where XX.XX.XX.XX will be an actual IP address):
...
Jun 29 10:12:25 ims-srv01 ddclient[2323]: SUCCESS: updating ims3k.ath.cx: good: IP address set to XX.XX.XX.XX
Jun 29 10:12:25 ims-srv01 ddclient[2323]: SUCCESS: updating IMS: good: IP address set to xx.xx.xx.xx
...
To get just the info you want, here is an excellent command to run from shell:
cat /var/log/daemon.log | grep ddclient
Magnificent! I followed step by step your indications on the /etc/ddclient.conf file for OpenDNS and IT WORKS PROPERLY.
After executing cat /var/log/daemon.log | grep ddclient this was the result:
Aug 5 02:36:24 galicia ddclient[2405]: SUCCESS: updating Casa: good: IP address set to 79.157.183.234
Thanks one million!
Works in Ubuntu 10.04.
One thing though, people should know that [OPENDNS_NETWORK_NAME] can be found at OpenDNS Dashboard --> Settings --> Your Networks "Label"
Hi i make conf leik how u said but
when try to host myserver.com www.dyndns.com
it connection timed out . no server could be reached
can you tell me how i can solve this error
Post a Comment