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
- Built upon domeneshop.no's own python API.
- Using https://api.ipify.org to get the public IP
pip3 install domeneshop-bots
See the documentation at https://api.domeneshop.no/docs/ for help on how to acquire your API credentials.
{
"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"] }
]
}
-
"@" -> https://domain.com : domeneshop.no uses '@' to indicate root domain
-
"www" -> https://www.domain.com : in case you have added a 'www' dns to root domain as well
-
"subdomain" -> https://subdomain.domain.com : only subdomain should be specified
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()
Or not. In any case you know what to do!
You can also use this service as a container.
See docker-compose.yml for example
- Erik Larsen - Grizzlyfrog
This project is licensed under the MIT License - see the LICENSE file for details
Thanks to domeneshop.no for creating an API!!