Skip to main content

Scaleway Update DNS

Project description

SUD

pyversions PyPi Status Test SUD Quality Gate Status Coverage Maintainability Rating

Sud, Sud nuie simme r'o Sud,
nuie simme curt' e nire,
nuie simme buone pe' canta
e faticamm' a faticà

(Pietra Motecorvino)

SUD (Scaleway Update Dns) is a small utility to add/update an "A" record in a DNS zone managed by Scaleway.

Install via Pip

$ pip install sud

Configure

By default SUD search for a configuration file in /etc/sud/sud-config.yml.

A minimal configuration file need the hostname you want to add/update and the API secret needed to talk with the Scaleway API like in the following example:

hostname: myname.mydomain.com
api_secret: 1279bde5-150f-4113-ba37-c4c58e1dfece

It is possible to change the frequency with which SUD checks if an IP change has occurred as well as receiving a telegram notification with the new IP address:

hostname: myname.mydomain.com
api_secret: 1279bde5-150f-4113-ba37-c4c58e1dfece
frequency: 600 # each 10 minutes
notifications:
  telegram:
    token: 0987654321:tdCkfKaJooaIWMvebbKYeliLfLhlhvpKAB
    chat_id: -1234567890

Run

To run sud just type:

$ sud run

if you want to place your config file somewhere else you can use:

$ sud -c /path/to/config.yml run

Help

You can get help just typing:

$ sud --help

License

SUD is released under the Apache License Version 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sud-0.3.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

sud-0.3.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file sud-0.3.0.tar.gz.

File metadata

  • Download URL: sud-0.3.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.12.2 Linux/6.5.0-1015-azure

File hashes

Hashes for sud-0.3.0.tar.gz
Algorithm Hash digest
SHA256 a8c1ce47b5685f4523b6105c771f9f4c93be720eab189e1e009c9776a98e960c
MD5 8819f5768e2d39c0e891cf9ad9d6a10b
BLAKE2b-256 113665c496a30251903e60efa77addcdbae0be2d1142fcc0b8bacad39e26fbdf

See more details on using hashes here.

Provenance

File details

Details for the file sud-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: sud-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.1 CPython/3.12.2 Linux/6.5.0-1015-azure

File hashes

Hashes for sud-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01d058ac56a73d65d3e152d79d234ddfd9958b472494077c6e591112349bb975
MD5 0b569102ff377eb43d23692e43cc4533
BLAKE2b-256 91bf07ed72b836265734e37804e05cd2ff6616c30577c08e6b40b098b55b96ad

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page