Monitor LXD and perform DNS changes
Project description
Program to monitor the LXD API endpoint for container and VM changes and performs DDNS updates to keep DNS records up to date.
Installation
pip install lxd-dyndns
Usage
$ lxd-dyndns -f /etc/lxd-dyndns.conf -d info
An example config file is shown below:
cache_dir = "/var/lib/lxd-dyndns"
[projects.k8s]
dns_server = "192.168.2.1"
dns_port = 8053
dns_transport = "TCP"
dns_key_name = "knot_lxd"
dns_key_secret = "Zj7NdR9/6DJonRuTt/++QgMyvSlD4Ndv+i5SvGtGY3Q="
dns_zone = "lxd.domain.tld."
lxd_server = "https://lxd-leader.domain.tld:8443"
lxd_verify = false
lxd_client_cert = "/etc/ssl/lxd-dyndns/client.crt"
lxd_client_key = "/etc/ssl/lxd-dyndns/client.key"
ipv6_prefixes = [ "dead:beef::0/96" ]
ipv4_prefixes = [ "255.255.255.255/32" ] # to disable IPv4 records
refresh_interval = 600 # 10 minutes
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lxd-dyndns-1.1.0.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for lxd_dyndns-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb9eb164c7fe9754a2b96ec0bd312fc7f023a2f845a1b5b807cbd20b016ee090 |
|
MD5 | d3db898a1da6cb93ddfed11b3ba168de |
|
BLAKE2b-256 | 673c21902615074e84194f4a49b7b6ceacd94ffcd92344a73cf8ce7e640771e6 |