Skip to content

Instantly share code, notes, and snippets.

View javaarchive's full-sized avatar
💭
I may be slow to respond.

Raymond javaarchive

💭
I may be slow to respond.
View GitHub Profile
@javaarchive
javaarchive / create-zones.py
Last active November 16, 2025 00:34 — forked from Syfaro/create-zones.py
Create DNS zones in Technitium DNS server to use with LanCache. Update for api changes.
# Running instructions:
#
# git clone https://github.com/uklans/cache-domains.git
# TECHNITIUM_HOST=http://technitium:5380 TECHNITIUM_USERNAME=admin TECHNITIUM_PASSWORD=password python3 create-zones.py ./cache-domains lancache-ip
import sys
import os
import json
from dataclasses import dataclass
from typing import Dict, List, Set