Commit graph

105 commits

Author SHA1 Message Date
David Kerr
374660efa4 Fix syntax errors testing for verbose option to print status messages. Woops. 2016-09-25 14:52:06 -04:00
David Kerr
e1a5c15d37 Fixed bugs in logic testing when to update IPv6 address 2016-09-25 14:32:55 -04:00
David Kerr
15ad4b54b5 Fixed bug that would cause IPv4 address to be updated even if it was unchanged.
Caused by testing for IPv6 address change even though no IPv6 update was requested.
Added capability to specify whether IPv4 or IPv6 should be updated or not with new
values:
use=no
usev6=no
2016-09-20 22:14:47 -04:00
David Kerr
c9523f382c Merge remote-tracking branch 'upstream/master' 2016-07-02 11:59:19 -04:00
wimpunk
df883fd091 Merge pull request #42 from Harry-Xue/master
Update CloudFlare from API v1 to API v4.

Patch provided by @Harry-Xue by pull-request #42
2016-05-25 08:47:27 +02:00
Harry-Xue
f52195700b Add files via upload
Catch up to changes in wimpunk/master.
2016-05-24 21:50:39 -07:00
Harry-Xue
6c951a0395 Add files via upload
Updated CloudFlare API from v1 to v4.
2016-05-24 21:18:08 -07:00
Harry-Xue
1d848de60c Merge pull request #1 from wimpunk/master
Catch up to wimpunk/ddclient
2016-05-24 21:07:01 -07:00
David Kerr
816216ee29 use "HERE Document" method for calling cURL command. 2016-03-18 13:07:26 -04:00
David Kerr
d5e8b32353 Force use of cURL when IPv6 protocol requested. The Perl NET6 functions do not fail
gracefully or fall back on IPv4 when running on a system that is not connected to IPv6
network.  Result is that ddclient may crash if IPv6 requested on a system that doesn't
have IPv6.
2016-03-18 13:00:44 -04:00
David Kerr
d07b52f75a Updates here are based on work I have done for the AstLinux project (AstLinux.org)
Adding comprehensive framework for IPv6 support.  IPv6 and IPv4 exist side-by-side
The same network interface may have both IPv4 and IPv6.  Therefore to support both
we add the following options.

 usev6 = [ ip, if, cmd, web ]
 ipv6 = [ set an IPv6 address (usev6=ip) ]
 webv6 = [ url of a web server that will return your IPv6 address (usev6=web)]
 webv6-skip = [ string to skip to before looking for IPv6 address]
 cmdv6 = [ system command to execute that will return an IPv6 address (usev6=cmd)]
 cmdv6-skip = [ string to skip to before looking for IPv6 address ]

There is no ifv6. It is assumed that if=interface will be the same for both IPv4
and IPv6

You can mix methods for IPv4 and IPv6 for the same interface.  For example
 use=web
 usev6=if
 if=eth0
 web=http://ipdetect.dnspark.com/
Would be a valid method for a system behind an IPv4 NAT connection, IPv6 would be
obtained from the eth0 interface (globaly routable address) and the public IPv4
from external web site.

Support for updating AAAA (IPv6) records is added for freedns.afraid.org.  The
existing IPv6 nsupdate method was updated to account for new design.

Optional support is added for cURL as some embedded systems do not have perl
NET6 and SSL packages installed.  Set with option
 curl=yes

Submitted code is ready for code review and comment.
2016-03-17 23:07:46 -04:00
wimpunk
7cad3a497f Merge pull request #38 from MichaelHarder/fix-nsupdate-ipv6-record-type
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.
2016-02-11 21:07:06 +01:00
Michael Harder
62c6460784 fix nsupdate using wrong type for ipv6 addresses 2016-02-04 01:06:17 -08:00
wimpunk
1ec1b291ba Merge pull request #37 from beamerblvd/add-nsupdate-tcp-support
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.
2016-01-26 19:34:44 +01:00
Nick Williams
375d075a3c 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.
2016-01-26 10:42:22 -06:00
wimpunk
35eefc3411 Merge pull request #36 from geraldhansen/master
Add ipv6 support by @geraldhansen
2016-01-25 21:46:51 +01:00
wimpunk
6b7942a139 README: fixing duckdns identation 2016-01-25 21:40:18 +01:00
Gerald Hansen
9ba67ab9f8 fix description for missing package 2016-01-19 10:37:08 +01:00
Gerald Hansen
3c2ef3e24c add ipv6 sample config for myonlineportal.net 2016-01-18 22:43:26 +01:00
Gerald Hansen
dc01f09224 add ipv6 support 2016-01-18 22:31:12 +01:00
Gerald Hansen
027fa03895 add ipv6 support for web option 2016-01-18 12:30:07 +01:00
wimpunk
bec4521ecd Merge branch 'hank-freedns-fix' into github
Fixed the last part of pull request #31 from @hank.
Cleaned up the code on FreeDNS.
2015-12-03 21:39:29 +01:00
wimpunk
5abb9fe1fe Fixing warnings on FreeDNS update NOP
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.
2015-12-03 21:27:41 +01:00
wimpunk
4f7fb1b3aa README: update version number.
This change was suggested in pull request #31 on github by @hank.
2015-12-03 21:18:13 +01:00
Erik Gregg
a2815d5081 Minor change to cache ip on freedns no-change 2015-11-29 14:13:20 -05:00
Erik Gregg
b478bf1a85 Don't issue warnings when freedns IP didn't change
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
2015-11-29 14:09:25 -05:00
wimpunk
a2ea922aa3 Merge pull request #11 from Tatsuya-Nonogaki/master
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.
2015-09-30 21:55:24 +02:00
wimpunk
d197e10556 Merge pull request #24 from gkranis/master
Adding duckdns example

Duckdns example added to sample-etc_ddclient.conf
2015-09-30 21:47:47 +02:00
wimpunk
59147f662b Merge pull request #25 from dancapper/master
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.
2015-09-30 21:45:22 +02:00
wimpunk
c36b2a0dd7 Merge pull request #26 from jabaz/master
Added support for woima.fi dyndns service
2015-09-30 17:41:33 +02:00
wimpunk
32e6b9bc19 Merge pull request #27 from jabaz/master-ubuntu
Prevent service to start multiple times

Added messages if trying to start/stop already started/stopped service.
Added daemon install instructions for ubuntu.
2015-09-30 17:37:54 +02:00
Janne Hannila
14e8539eaf Prevent service to start multiple times.
Added messages if trying to start/stop already started/stopped service.
Added daemon install instructions for ubuntu.
2015-09-30 14:59:58 +03:00
Janne Hannila
35e6c1a163 Added support for woima.fi dyndns service 2015-09-30 14:54:02 +03:00
wimpunk
e7290d827b Cleanup: removing revision info.
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
2015-09-28 21:42:02 +02:00
Wim Vinckier
6fc2f511b6 Cleanup: removing revision info from ddclient
Preparing the complete merge with sf.
2015-09-28 21:38:28 +02:00
wimpunk
88c2eb46e6 Cleanup: removing Id tags from the files
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
2015-09-28 21:17:51 +02:00
dancapper
17d31e4373 typo fix 2015-07-14 22:19:02 +12:00
dancapper
a4ceba9c2b Merge pull request #1 from dancapper/dancapper-patch-1
cloudflare - add ttl to config
2015-07-14 22:13:56 +12:00
dancapper
a7fce1a9bd add ttl for cloudflare 2015-07-14 22:13:22 +12:00
dancapper
331a5491af cloudflare - add ttl to config
Configurable ttl for cloudflare instead of hardcoded 1 (auto)
2015-07-14 22:11:41 +12:00
George Kranis
4a640ed4c0 duckdns example 2015-06-01 22:02:37 +03:00
wimpunk
3cbb0f42f9 Merge pull request #23 from MedicMomcilo/patch-1
Corrected FSF address.

Merging pull request #23 from @MedicMomcilo
2015-05-31 11:27:36 +02:00
MedicMomcilo
c497ed04c7 FSF address
Address for FSF was wrong, corrected
2015-05-31 01:55:41 +02:00
Wim Vinckier
1d919b15a3 Preparing for v3.8.3 2015-05-28 22:05:05 +02:00
Wim Vinckier
7a3d0f99ce Reverting to the old perl requirements like suggested in #75
The new requirements were added when adding support for cloudflare.  By the
simple fix suggested by Roy Tam we could revert the requirements which make
ddclient back usable on CentOS and RHEL.
2015-05-08 22:04:42 +02:00
Wim Vinckier
98060e2836 ddclient: made json optional
As suggested in pull #7 by @abelbeck and @Bugsbane it is better to make the
use of JSON related to the use of cloudflare.
2015-03-23 19:27:38 +01:00
Wim Vinckier
119588f40f ddclient: reindenting cloudflare
Indenting cloudflare according to the vim tags
2015-03-23 19:25:58 +01:00
Wim Vinckier
87a0260c88 ddclient: correction after duckdns merge
Correcting duckdns configuration after commit 0c9920a1
2015-03-23 19:24:01 +01:00
Wim Vinckier
f6409c756d Added duckDNS to the README.md 2015-03-21 12:57:37 +01:00
wimpunk
1786e6b2a5 Merge pull request #9 from gottaloveit/master
update ubuntu init.d script
2015-03-21 12:46:49 +01:00