fix nsupdate using wrong type for ipv6 addresses
nsupdate was failing because it was trying to set an A record with an ipv6 address. This will check for an ipv6 address and use the appropriate record type.
Add support for telling `nsupdate` to use TCP instead of UDP
By default, `nsupdate` uses UDP unless the update size is too large to fit in a UDP datagram, in which case it automatically switches to TCP. This change adds a `tcp` configuration option to the `nsupdate` protocol so that the user can force `nsupdate` to use TCP.
By default, `nsupdate` uses UDP unless the update size is too large to fit in a UDP datagram, in which case it automatically switches to TCP. This change adds a `tcp` configuration option to the `nsupdate` protocol so that the user can force `nsupdate` to use TCP.
Fix based on pull request #31 on github commited by @hank.
_original comments_
When FreeDNS was updating, I was noticing that it would send back an HTTP 200
with the text "Address [IP] has not changed", but ddclient was issuing a
failed status for this and logging a ton of text to syslog. I changed the
function a tiny bit to allow this to be a success status. I also reformatted
the code to all spaces instead of mixed spaces and tabs, but you can take that
or leave it - I don't really care, it was just a total whitespace disaster
before.
Before this update, freedns warnings would appear in the log even though
FreeDNS sent back a code 200 with a message indicating the IP address was
already correct. A simple regex change was all that was needed to make this a
success instead. Now, it looks like this:
DEBUG: server = freedns.afraid.org
SUCCESS: updating xxx.xxx.xxx good: IP address has not changed
Conflicts:
ddclient
Adding configurable TTL to Cloudflare
This change adds configurable TTL to cloudflare instead of just using hardcoded value of 1 which sets "automatic" TTL any time ddclient updates the IP address.
git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@195 3873ddee-7413-0410-b6c4-c2c57c1ab35a
Adding duckdns example
Duckdns example added to sample-etc_ddclient.conf
git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@194 3873ddee-7413-0410-b6c4-c2c57c1ab35a
This is the squashed commits of former odd-fw-patch and its addition, which will add functions to;
* un-zeropad IP address returned by some odd routers,
* make $ip UNDEF if get_ip('fw') returned a local IP address.
Adding configurable TTL to Cloudflare
This change adds configurable TTL to cloudflare instead of just using hardcoded value of 1 which sets "automatic" TTL any time ddclient updates the IP address.
Prevent service to start multiple times
Added messages if trying to start/stop already started/stopped service.
Added daemon install instructions for ubuntu.
Removing revision info even when it's just in the comments.
git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@190 3873ddee-7413-0410-b6c4-c2c57c1ab35a
Removing revision info even when it's just in the comments.
git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@190 3873ddee-7413-0410-b6c4-c2c57c1ab35a
Since we are not going to fetch the changes from svn anymore,
we add the old ChangeLog again.
git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@189 3873ddee-7413-0410-b6c4-c2c57c1ab35a
Switching to git so we don't need .cvsignore anymore
git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@188 3873ddee-7413-0410-b6c4-c2c57c1ab35a
Preparing a complete move to git. The Id tag isn't useful so removing from
the files seemed to be the best solotion
git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@186 3873ddee-7413-0410-b6c4-c2c57c1ab35a
Preparing a complete move to git. The Id tag isn't useful so removing from
the files seemed to be the best solotion
git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@186 3873ddee-7413-0410-b6c4-c2c57c1ab35a