Ensure OVH DNS records
Find a file
2025-05-05 19:46:44 +03:00
config first commit 2024-10-03 13:18:06 +03:00
ovh_dns_ensure reduce line 2025-05-05 19:46:44 +03:00
.gitignore first commit 2024-10-03 13:18:06 +03:00
Dockerfile first commit 2024-10-03 13:18:06 +03:00
install.sh fix installer 2025-05-05 14:07:55 +03:00
LICENSE first commit 2024-10-03 13:18:06 +03:00
ovh_dns_ensure.sh Add wrapper script 2025-05-05 13:06:53 +03:00
podman_build.sh first commit 2024-10-03 13:18:06 +03:00
podman_run.sh first commit 2024-10-03 13:18:06 +03:00
pyproject.toml update usage 2024-10-03 13:21:23 +03:00
README.md use script in readme 2024-10-03 13:26:18 +03:00
requirements.txt first commit 2024-10-03 13:18:06 +03:00
setup.cfg update usage 2024-10-03 13:21:23 +03:00
setup.py Add wrapper script 2025-05-05 13:06:53 +03:00
wrapper.sh Add wrapper script 2025-05-05 13:06:53 +03:00

ovh_dns_ensure

Requirements

Installation

Linux

sudo python3 setup.py install

Windows (from PowerShell)

& $(where.exe python).split()[0] setup.py install

Usage

Usage: ovh_dns_ensure.sh [OPTIONS]

Options:
-d, --debug-level [CRITICAL|ERROR|WARNING|INFO|DEBUG|NOTSET]
                                Set the debug level for the standard output.
-l, --log-file TEXT             File to store all debug messages.
-n, --dummy                     Don't do anything, just show what would be
                                done.
-z, --zone TEXT                 DNS zone to do the changes  [required]
-s, --subdomain TEXT            Subdomain to ensure  [required]
-T, --type [A|AAAA|CAA|CNAME|DKIM|DMARC|DNAME|LOC|MX|NAPTR|NS|PTR|SPF|SRV|SSHFP|TLSA|TXT]
                                DNS record type  [required]
-t, --target TEXT               Desired target for the subdomain  [required]
-l, --ttl INTEGER               Desired target Time-To-Live  [required]
-S, --state [present|absent]    State to ensure.
-a, --ovh-app-key TEXT          OVH Application key. Better use the
                                configuration file for safety.  [required]
-e, --ovh-app-secret TEXT       OVH Application secret. Better use the
                                configuration file for safety.  [required]
-c, --ovh-consumer-key TEXT     OVH Consumer key. Better use the
                                configuration file for safety.  [required]
-E, --ovh-endpoint [ovh-eu|ovh-us|ovh-ca|soyoustart-eu|soyoustart-ca|kimsufi-eu|kimsufi-ca]
                                OVH Server to use.  [required]
--config FILE                   Read configuration from FILE.
--help                          Show this message and exit.