[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On Thu, 30 Jun 2005 16:42:25 +0100
Peter Walker wrote:
> Grant,
>
> ddclient chould only update if the IP has changed. The current IP
> address should be inddclient.cache.
> Have you tried running it in debug mode to see what is going on?
>
> Cheers,
>
> Pete
Cheers Pete.
Yep, there is indeed a ddclient.cache file in /etc/ddclient, and it does show the IP
address that was correct last time it was run (I have since disabled it in cron).
Tried it in debug mode. Here's the output:
# ddclient -daemon=0 -syslog -verbose -debug retry
=== opt ====
opt{cache} : <undefined>
opt{cmd} : <undefined>
opt{cmd-skip} : <undefined>
opt{daemon} : 0
opt{debug} : 1
opt{exec} : <undefined>
opt{facility} : <undefined>
opt{file} : <undefined>
opt{force} : <undefined>
opt{fw} : <undefined>
opt{fw-login} : <undefined>
opt{fw-password} : <undefined>
opt{fw-skip} : <undefined>
opt{geturl} : <undefined>
opt{help} : <undefined>
opt{host} : <undefined>
opt{if} : <undefined>
opt{if-skip} : <undefined>
opt{ip} : <undefined>
opt{login} : <undefined>
opt{mail} : <undefined>
opt{mail-failure} : <undefined>
opt{max-interval} : 1296000
opt{min-error-interval} : 300
opt{min-interval} : 30
opt{options} : <undefined>
opt{password} : <undefined>
opt{pid} : <undefined>
opt{priority} : <undefined>
opt{protocol} : <undefined>
opt{proxy} : <undefined>
opt{query} : <undefined>
opt{quiet} : 0
opt{retry} : <undefined>
opt{server} : <undefined>
opt{syslog} : 1
opt{test} : <undefined>
opt{timeout} : <undefined>
opt{use} : <undefined>
opt{verbose} : 1
opt{web} : <undefined>
opt{web-skip} : <undefined>
=== globals ====
globals{daemon} : 60
globals{debug} : 1
globals{login} : xxxxxx (obscured for obvious reasons)
globals{mail} : root
globals{mail-failure} : root
globals{password} : xxxxxxxx (obscured for obvious reasons)
globals{pid} : /var/run/ddclient.pid
globals{protocol} : dyndns2
globals{quiet} : 0
globals{syslog} : 1
globals{use} : web
globals{verbose} : 1
globals{web} : checkip.dyndns.org/
globals{web-skip} : IP Address
globals{wildcard} : 1
=== config ====
config{thymox.dyndns.org}{atime} : 1120127467
config{thymox.dyndns.org}{backupmx} : 0
config{thymox.dyndns.org}{cacheable} : ARRAY(0x833b800)
config{thymox.dyndns.org}{custom} : 0
config{thymox.dyndns.org}{host} : thymox.dyndns.org
config{thymox.dyndns.org}{ip} : xx.xxx.xx.xxx (obscured for obvious reasons)
config{thymox.dyndns.org}{login} : xxxxxx (obscured for obvious reasons)
config{thymox.dyndns.org}{max-interval} : 1296000
config{thymox.dyndns.org}{min-error-interval} : 300
config{thymox.dyndns.org}{min-interval} : 30
config{thymox.dyndns.org}{mtime} : 1120127467
config{thymox.dyndns.org}{mx} :
config{thymox.dyndns.org}{password} : xxxxxxxx (obscured for obvious reasons)
config{thymox.dyndns.org}{protocol} : dyndns2
config{thymox.dyndns.org}{server} : members.dyndns.org
config{thymox.dyndns.org}{static} : 0
config{thymox.dyndns.org}{status} : good
config{thymox.dyndns.org}{warned-min-error-interval} : 0
config{thymox.dyndns.org}{warned-min-interval} : 0
config{thymox.dyndns.org}{wildcard} : 1
config{thymox.dyndns.org}{wtime} : 0
=== cache ====
cache{thymox.dyndns.org}{atime} : 1120127467
cache{thymox.dyndns.org}{backupmx} : 0
cache{thymox.dyndns.org}{custom} : 0
cache{thymox.dyndns.org}{host} : thymox.dyndns.org
cache{thymox.dyndns.org}{ip} : xx.xxx.xx.xxx (obscured for obvious reasons)
cache{thymox.dyndns.org}{mtime} : 1120127467
cache{thymox.dyndns.org}{mx} :
cache{thymox.dyndns.org}{static} : 0
cache{thymox.dyndns.org}{status} : good
cache{thymox.dyndns.org}{warned-min-error-interval} : 0
cache{thymox.dyndns.org}{warned-min-interval} : 0
cache{thymox.dyndns.org}{wildcard} : 1
cache{thymox.dyndns.org}{wtime} : 0
CONNECT: checkip.dyndns.org
CONNECTED:
SENDING: GET / HTTP/1.0
SENDING: Host: checkip.dyndns.org
SENDING: User-Agent: ddclient/3.6.6
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.0 200 OK
RECEIVE: Server: Cherokee/0.4.6
RECEIVE: Pragma: no-cache
RECEIVE: Cache-Control: no-cache
RECEIVE: Content-Type: text/html
RECEIVE: Connection: close
RECEIVE:
RECEIVE: <html><head><title>Current IP Check</title></head><body>Current IP
Address: xx.xxx.xx.xxx</body></html>
DEBUG: get_ip: using web, checkip.dyndns.org/ reports xx.xxx.xx.xxx
SUCCESS: thymox.dyndns.org: skipped: IP address was already set to xx.xxx.xx.xxx.
Can't exec "sendmail": No such file or directory at /usr/sbin/ddclient line 1210.
ddclient: cannot execute command | sendmail -oi root.
Now, I got myself unblocked, but I'm pretty certain that if I uncomment the line(s)
in my crontab entry then I'll get blocked again quickly. Here's the relevant
section of my crontab:
######################################################################
## ddclient is an IP address updater for www.dyndns.org
## $Header: /cvsroot/ddclient/ddclient/sample-etc_cron.d_ddclient,v 1.2 2004/12/03
07:30:44 wimpunk Exp $
######################################################################
## minute 0-59
## hour 0-23
## day of month 1-31
## month 1-12 (or names, see below)
## day of week 0-7 (0 or 7 is Sun, or use names)
######################################################################
## force an update twice a month (only if you are not using daemon-mode)
##
#30 23 1,15 * * root /usr/sbin/ddclient -daemon=0 -syslog -quiet -force
##
######################################################################
## foce an update every hour just to make sure!
## 0 0 * * root /usr/sbin/ddclient -daemon=0 -syslog -quiet -force
######################################################################
## retry failed updates every hour (only if you are not using daemon-mode)
##
#0 * * * * root /usr/sbin/ddclient -daemon=0 -syslog -quiet retry
I had both of them uncommented. I am not using it in daemon mode because there's
little point... my IPCop box cannot detect on it's own when the IP changes, hence I
am using ddclient.
Cheers.
Grant.
--
Artificial intelligence is no match for nuratal stidutipy.
--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe. FAQ: www.dcglug.org.uk/linux_adm/list-faq.html