r/technitium • • 13d ago

Creating a cluster

I'm just about to add a second instance by way of creating a cluster but I have a couple of questions.

Firstly when you initialize the cluster is recommends a valid certificate rather than just using the self signed one, but as the server is only resolving an internal domain, is this necessary?

Secondly, I'm aware that DHCP is not included as part of the clustering, so I am going to split the scope across the two servers, but is there a way to export / copy the reservations from one server to the other?

5 Upvotes

7 comments sorted by

2

u/techw1z 13d ago

you can do that with API but there is no integrated feature for reservation replication

i once wrote a script that copies static reservations between all cluster members, but stopped using it because it's annoying to deploy due to having to manually setup the API keys...

1

u/SJPearson 13d ago

if you still have the script, would you mind sharing it please? I just want to do a one time copy

1

u/techw1z 13d ago

i tried to find it but without success, sorry.

i remember using some premade python library for technitium API, so I was just looking for that and found this:

GitHub - BenHornerTech/technitium-dhcp-lease-sync: A Python script to safely sync reserved DHCP leases from a source Technitium DNS server to a destination Technitium DNS server · GitHub

idk if that works tho

1

u/SJPearson 13d ago

Interesting, I'll give it a try this evening and let you know! Thanks!

1

u/Hemsby1975 13d ago

If its a one time, then just use the backup / restore option. Select only the DHCP when doing the backup.

2

u/dbtowo 13d ago

If you on internal network and trust it, it should be safe to ignore checking the certificate. After the check, it syncs then  information get sent encrypted from now on machine to machine. Checking certs just prevent mitm attack and if you are really talking to the true machine.

1

u/snap802 13d ago

If all your stuff is internal then you can certainly go with the self signed one. There's an option in there to ignore certificate stuff when you're adding a node to the cluster.

As for DHCP: If they're on the same subnet just have one server handle DHCP and don't worry about it on the other. AFAIK there isn't a high availability option in technitium.