Commit graph

9 commits

Author SHA1 Message Date
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
Josh Jacobs ad8854cf54 Typo fix and using stable API in README 2017-11-17 13:28:07 +00:00
cave beat b5abfe0ede rename and readme 2017-08-16 19:55:01 +02:00
cave beat d5aaa3e378 small fixes in README 2017-08-15 18:29:25 +02:00
cave beat 29b4acad08 updated README, added ip address lookup service 2017-08-15 18:25:55 +02:00
cave beat 03be4141d3 updated README 2017-08-15 18:01:15 +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 a330071a0e first README 2017-08-14 23:45:08 +02:00