Skip to content

Improve public IP detection reliability, allow some default overrides, and other improvements

Latest
Compare
Choose a tag to compare
@zhimsel zhimsel released this 13 Nov 19:54
· 1 commit to master since this release
1d7e502

This changes the source of the detected public IP from a no-longer-maintained (and no longer available!) python library, ipgetter, to AWS's checkip service.

A new commandline option (--max-tries) has also been introduced, to allow users to override the default of 5.

The script now also will update the target record if the specified TTL (via --ttl) does not match the existing record's value (i.e. it considers "mismatched TTL" to be out-of-date, not just "mismatched record value").

This release also includes a number of other improvements and fixes.

Changes since last release

  • 959221e: Switch from ipgetter to AWS's IP address service
  • 0163e53: Rework max-tries handling for IP retrieval
  • dd6989a: Fix some PEP8 errors
  • 3b68d2e: Remove unnecessary typechecking
  • e19ebc9: Revise some None-based logic for readability
  • fec8744: Update target record on mismatched TTL, too
  • c972797: Make some methods static
  • f094636: Add some examples to the documentation
  • 1d7e502: Improve explanation of --ttl option