Commit Graph

17 Commits

Author SHA1 Message Date
Gitouche fcf0b5f625 Update example and README.md 2022-09-27 21:08:20 +02:00
Gitouche b70621b018 Add IPv4/IPv6 lookup services 2022-09-26 22:54:11 +02:00
Gitouche fcb18989b9 clean ipv6 support 2022-09-26 22:52:12 +02:00
Gitouche e0b7e598e0 add multidomain support - broken ipv6 2022-09-26 22:08:43 +02:00
David Ervideira b55e96d78c The script it self can run forver now
* Add option for the script to repeat itself
  after N seconds

* Add a Dockerfile so that this could be run
  inside docker
2019-12-09 16:10:00 +00:00
David Ervideira d46419ef3d Fix config property name 2019-12-09 13:18:19 +00:00
David Ervideira c1fd36d383 IPv6 support and Python 3 conversion
This introduces support to Python 3, since Python 2 will
deprecated in January 1st 2020.
More info here: https://www.python.org/doc/sunset-python-2/

This Python 3 conversion breaks compatibility with Python 2
but since Python 2 will be deprecated, I see no issue with that.

Another update this is introducing is ipv6 support since I started
getting my ip in v6 format from the ifconfig providers.

There is a new config entry `subdomains6` for configuring the ipv6
domains that will be updated if the returned ip is ipv6.

With ipv6, the script will update either ipv6 or ipv4 depending on
the value returned by the provider.

The usage of the script remains the same.

Other changes made:

 * Use `print()` function instead of the `print` statement
 * Better readability by using f-string
 * Use the json object directly from `requests`instead of parsing the
content with the `json` module
 * Add function to check for ipv6
 * Add `subdomains6`` to config got ipv6 subdomains
 * Incresed verbosity option
2019-12-09 11:57:26 +00:00
cave 5e3ff0d3a6
remove beta
remove beta from api endpoint
2018-03-19 20:38:32 +01:00
Anton Strömkvist a45b045f7f
Update ifconfig.co example endpoint
Requesting the url without `/ip` will return a response with the HTML of the web page, causing the script to throw an error
2018-01-25 11:15:59 +01:00
cave 33ffece8fc Merge pull request #2 from baloo/patch-1
Use stable gandi API url
2017-10-03 19:31:36 +02:00
Dimitri John Ledkov af959d7501
Drop config.pyc from the tree, ignore config.py* files. 2017-09-23 23:05:47 +01:00
Arthur Gautier 8e9b7d25ea Use stable gandi API url
The gandi api has changed its url for a more stable
one. Although https://dns.beta.gandi.net will continue to 
work for the foreseable future, this commits updates the
url to new official one.
2017-09-06 17:07:36 +00:00
cave beat b5abfe0ede rename and readme 2017-08-16 19:55:01 +02:00
cave beat 29b4acad08 updated README, added ip address lookup service 2017-08-15 18:25:55 +02:00
cave beat e0866f3f86 updated force command, texts, error handling of requests and http code,
updated readme.
2017-08-15 17:54:18 +02:00
cave beat a2adf9ecab updated README, added command line Arguments. 2017-08-15 14:42:51 +02:00
cave beat 6762480a15 initial working state 2017-08-14 23:18:04 +02:00