diff options
author | pommicket <pommicket@gmail.com> | 2025-09-30 21:29:17 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-30 21:29:17 -0400 |
commit | ace19b98f7e3250d4520a4b893d4aeabe58118c7 (patch) | |
tree | b80febb120ec51d9ede0a12b47cb80d045a1ad92 /simpleddns.py | |
parent | f648c5c8136bd86ecbe4bb68120b89afa1390553 (diff) |
Prepare for releasev0.1.0
Diffstat (limited to 'simpleddns.py')
-rwxr-xr-x | simpleddns.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/simpleddns.py b/simpleddns.py index 7c05e1c..fb00e20 100755 --- a/simpleddns.py +++ b/simpleddns.py @@ -53,7 +53,7 @@ def setup_config(config_path: Path) -> None: print('Aborting.') return config_path.unlink() - default_get_ip = 'curl --no-progress-meter ifconfig.co' + default_get_ip = "curl --no-progress-meter https://ifconfig.co" domain_name = input('Domain name? ').strip() if not domain_name: fatal_error('Domain name must be set') @@ -98,6 +98,8 @@ def setup_config(config_path: Path) -> None: # In this case, simpleddns will fail if the variable isn't set, and # to avoid ambiguity the variable's value must still be a python literal! # So set MY_ACCESS_TOKEN='"foo"', rather than MY_ACCESS_TOKEN=foo +# +# Global settings -- these can all be overriden on a per-domain basis. Settings # Interval in seconds between checking IP address for changes # (API calls are only made when it changes) @@ -105,7 +107,7 @@ Settings # Timeout to wait for API responses timeout = 20 # Time To Live (in seconds) with which to create DNS records - ttl = 300 + ttl = 30 # Delay between API calls (seconds), to avoid being rate limited. # 0.4 seconds should be more than enough for both Linode and AWS, # but you may want to set this higher if you have other things @@ -128,7 +130,7 @@ class Settings: dry_run: bool = False interval: int = 15 timeout: int = 20 - ttl: int = 300 + ttl: int = 30 request_delay: float = 0.4 class Domain(ABC): |