A python script for dynamic DNS updates for Ionos Domains.
Find a file
2022-09-02 22:03:19 +02:00
.gitignore feat: add .gitignore, requirements and basic README 2022-09-02 21:38:40 +02:00
domains.json docs: add domains.json example and explanation 2022-09-02 22:03:19 +02:00
README.md docs: add domains.json example and explanation 2022-09-02 22:03:19 +02:00
requirements.txt feat: add .gitignore, requirements and basic README 2022-09-02 21:38:40 +02:00

Ionos DNS updates

A set of scripts used to make dynamic DNS updates to the Ionos API.

Dependencies

Python libraries:

Initial setup

Install the dependencies, preferrably using your system's package manager.

Next, you will need your Ionos API keypair. Clone the repo and create a file called apikey.yml at the project root. Inside the file, paste your Ionos API-keypair in the following format:

---

apikey:
  prefix: <your api key prefix>
  secret: <your api key secret>

...

Adding target domains

Add every domain you want to send an update for to the file domains.json. The file should list each domain whose global DNS record should point to the local host's public IP. The file must have the following format:

{
  "domains": [
    "example.com",
    "subdomain1.example.com",
    "subdomain2.example.com",
  ],
  "description": "My dynamic DNS."
}

The description can have any string as a value, but it must be present.