Commit graph

349 commits

Author SHA1 Message Date
David Kerr
1449e21a7d Improve IPv6 parsing and some error messages 2017-02-15 22:40:55 -05:00
David Kerr
5ab9881b4d Merge remote-tracking branch 'upstream/master' 2017-02-15 22:00:59 -05:00
wimpunk
94dc35984f Update version in README
Corrected version number as suggested by @abelbeck.
2017-02-15 21:49:25 +01:00
wimpunk
e33aa2fa96 Adding sample-get-ip-from-fritzbox
Example config showing how to retrieve IP from fritzbox via UPnP
using ddclients cmd option.  The script has been provided by @Rusk85
in pull request #45
2017-02-15 21:31:09 +01:00
Rusk85
40409911b3 script to retrieve IP from fritzbox via UPnP
Original author of this one-liner can be found here:
http://scytale.name/blog/2010/01/fritzbox-wan-ip
2017-02-15 21:26:57 +01:00
wimpunk
fbd62b7cce Use JSON::PP instead of the (deprecated) JSON::Any
As suggeseted in pull request #48 by @abelbeck, this commit replaces
the deprecated JSON::Any by JSON::PP.  This only influences cloudflare
users.
2017-02-15 21:06:56 +01:00
Lonnie Abelbeck
7321959383 cosmetic, remove stray space indent 2017-02-15 21:01:42 +01:00
Lonnie Abelbeck
fca9b2149b Use JSON::PP instead of the (deprecated) JSON::Any 2017-02-15 21:01:42 +01:00
wimpunk
47df8f45b4 Adding support for freemyip.com
Support provided by @Cadence-GitHub in by pull request #47
2017-02-13 21:21:13 +01:00
David Kerr
680cf6be18 Merge remote-tracking branch 'upstream/master' 2017-01-22 19:47:52 -05:00
Tomasz Grabowski
d6359cb7e0 Adding required documentation and examples 2017-01-16 18:12:29 -05:00
Tomasz Grabowski
b3a234a70f Adding support for free dns service at freemyip.com 2017-01-16 18:03:26 -05:00
wimpunk
a9240d00f5 Merge pull request #46 from fcolista/master
sample-etc_rc.d_init.d_ddclient.alpine: openrc uses openrc-run now

Runscript is now absolute.  Pull request #46
2016-11-15 17:55:41 +01:00
Francesco Colista
a785948800 sample-etc_rc.d_init.d_ddclient.alpine: openrc uses openrc-run now, runscript is obsolete 2016-11-14 18:36:19 +00:00
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
wimpunk
a9ab60e7a1 Merge pull request #44 from esetnik/cloudflare_config
Cloudflare Config fix from #44.

Specifying the `server` directive caused the Cloudflare protocol to use the wrong url when communicating with Cloudflare API v4. It works if the directive is removed.
2016-09-08 15:38:40 +02:00
Ethan Setnik
abb6674d60
update sample config with functional cloudflare settings 2016-09-08 01:08:34 -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
747620cf66 Merge branch 'github' 2016-01-26 19:46:24 +01:00
wimpunk
68b9e346d1 Merge branch 'github' 2016-01-26 19:45:46 +01: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
eafb707437 Revert "Merge branch 'github'"
This reverts commit 38f9762e2c, reversing
changes made to 5bea1a58f7.
2015-12-04 11:54:18 +01:00
wimpunk
38f9762e2c Merge branch 'github'
Conflicts:
	README.md
	ddclient
2015-12-04 11:54:15 +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
5bea1a58f7 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.

git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@195 3873ddee-7413-0410-b6c4-c2c57c1ab35a
2015-10-13 20:26:00 +00:00
wimpunk
017f04b500 Merge pull request #24 from gkranis/master
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
2015-10-13 20:25:53 +00:00
wimpunk
80046c5a23 Prevent service to start multiple times.
Added messages if trying to start/stop already started/stopped service.
Added daemon install instructions for ubuntu.

git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@193 3873ddee-7413-0410-b6c4-c2c57c1ab35a
2015-10-13 20:25:45 +00:00
wimpunk
3d996f0878 odd-fw-patch-squashed
git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@192 3873ddee-7413-0410-b6c4-c2c57c1ab35a
2015-10-13 20:12:21 +00:00