Skip to main content

Bot for domeneshop.no to keep your dns records updated with correct ip for your self hosting sites and services

Project description

Domeneshop.no DNS boot

Bot for users of domeneshop.no. Keep your dns records updated with public ip for your self hosted sites and services.

Only IP will be updated by the bot; record type, ttl and hostname will remain the same

Installation

pip3 install domeneshop-bots

Usage

See the documentation at https://api.domeneshop.no/docs/ for help on how to acquire your API credentials.

1. Fill inn API credentials and domains to track

{
   "api":{
      "token":"<your-domeneshop.no-token>",
      "secret":"<your-domeneshop.no-secret>"
  },
  "track": [
    {
      "domain": "yourdomainA.com",
      "hosts": ["subdomainA", "subdomainB", "subdomainC"]
    },
    { "domain": "yourdomainB.com", 
      "hosts": ["@", "www"] 
    },
    { "domain": "yourdomainC.com", 
      "hosts": ["@", "www", "subdomain"] 
    }
  ]
}

Hostname defaults

2. Fire the bot up, example loading json from file

import json
from domeneshop_bots import DNSBot


if __name__ == "__main__":
    with open("./config.json", 'r') as file:
        config = json.loads(file.read())
        bot = DNSBot(config)
        bot.start()

3. Set up a cron job, and you are done!

Or not. In any case you know what to do!

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

Thanks to domeneshop.no for creating an API!!

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

domeneshop-bots-0.0.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

domeneshop_bots-0.0.2-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file domeneshop-bots-0.0.2.tar.gz.

File metadata

  • Download URL: domeneshop-bots-0.0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5

File hashes

Hashes for domeneshop-bots-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1c94417113512c1d40370367f46879c3e8870bc003775a692dd47ff1b7f7c349
MD5 7dfac41fe34439231704e1ad2a9bb105
BLAKE2b-256 d156c7fd03b8e8fdb298fd87c172127d70efa1c835fb614f545bb036a45340e0

See more details on using hashes here.

File details

Details for the file domeneshop_bots-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: domeneshop_bots-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5

File hashes

Hashes for domeneshop_bots-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4aab50327a7ebd5959430738268d5b36d51f5f7777dd0ab3fdc647629fb19b2c
MD5 68f18e17e0085cbcc68d4816e8127fd8
BLAKE2b-256 a4237527b52979509b30ca2ff10b05a905d14c47e2d954d6dc3a73731cee8a1b

See more details on using hashes here.

Supported by

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