Patches item #2686318, was opened at 2009-03-13 12:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=676130&aid=2686318&group_id=116817
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Kyle Powell (z-row)
Assigned to: Nobody/Anonymous (nobody)
Summary: Implement DynDNS Feature Request[1]
Initial Comment:
[1] https://sourceforge.net/forum/forum.php?thread_id=1668195&forum_id=467339
This patch will check the mtime of the configuration file if a host using the dyndns2 protocol needs to be updated but its last update attempt failed. If the mtime of the config file is older that the atime of the failure, the update is not sent. The user must modify the config file (and hopefully fix whatever caused the failure) before an update will be sent. The check is subordinate to the min-error-interval check.
[root@foo ~]# ddclient -verbose
INFO: setting IP address to 192.168.69.173 for testing.dyndns.org
UPDATE: updating testing.dyndns.org
CONNECT: members.dyndns.org
CONNECTED: using SSL
SENDING: GET /nic/update?system=statdns&hostname=testing.dyndns.org&myip=192.168.69.173 HTTP/1.0
SENDING: Host: members.dyndns.org
SENDING: Authorization: Basic dGVzdG1lOnBhc3N3b3Jk
SENDING: User-Agent: ddclient/3.8.0
SENDING: Connection: close
SENDING:
RECEIVE: HTTP/1.1 200 OK
RECEIVE: Date: Fri, 13 Mar 2009 16:44:55 GMT
RECEIVE: Server: Apache
RECEIVE: Content-Type: text/plain
RECEIVE: Connection: close
RECEIVE:
RECEIVE: badauth
FAILED: updating testing.dyndns.org: badauth: Bad authorization (username or password)
[root@foo ~]# ddclient -verbose
WARNING: file /var/cache/ddclient/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''
WARNING: skipping update of testing.dyndns.org from <nothing> to 192.168.69.173.
WARNING: last updated <never> but last attempt on Fri Mar 13 12:45:55 2009 failed.
WARNING: Wait at least 5 minutes between update attempts.
[root@foo ~]# sleep 300
You have new mail in /var/spool/mail/root
[root@foo ~]# ddclient -verbose
WARNING: skipping update of testing.dyndns.org from <nothing> to 192.168.69.173.
WARNING: last update attempt on Fri Mar 13 12:45:55 2009 failed.
WARNING: /etc/ddclient/ddclient.conf last updated Fri Mar 13 12:45:42 2009.
WARNING: please make necessary configuration changes to correct the last failure.
[root@foo ~]# vi /etc/ddclient/ddclient.conf
[root@foo ~]# ddclient -verbose
INFO: setting IP address to 192.168.69.173 for testing.dyndns.org
UPDATE: updating testing.dyndns.org
CONNECT: members.dyndns.org
CONNECTED: using SSL
SENDING: GET /nic/update?system=statdns&hostname=testing.dyndns.org&myip=192.168.69.173 HTTP/1.0
SENDING: Host: members.dyndns.org
SENDING: Authorization: Basic dGVzdDpwYXNzd29yZA==
SENDING: User-Agent: ddclient/3.8.0
SENDING: Connection: close
...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=676130&aid=2686318&group_id=116817
|