summaryrefslogtreecommitdiff
path: root/simpleddns.py
diff options
context:
space:
mode:
Diffstat (limited to 'simpleddns.py')
-rwxr-xr-xsimpleddns.py8
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):