From d8022fb94ad58dacf96b1e0a3aca9586241eb6ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sch=C3=B6dl?= Date: Sun, 23 Nov 2025 16:02:26 +0000 Subject: [PATCH] dnsmasq.conf aktualisiert --- dnsmasq.conf | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/dnsmasq.conf b/dnsmasq.conf index e69de29..006a520 100644 --- a/dnsmasq.conf +++ b/dnsmasq.conf @@ -0,0 +1,38 @@ +# Allgemein +interface=eth0 +listen-address=192.168.178.5 +bind-interfaces +domain-needed +bogus-priv +expand-hosts + +# DHCP-Server (dein bisheriges Fritz!Box-Netz) +dhcp-range=192.168.178.100,192.168.178.200,255.255.255.0,12h + +# Gateway und DNS weitergeben +dhcp-option=3,192.168.178.1 # Gateway (Fritz!Box) +dhcp-option=6,192.168.178.5,8.8.8.8,1.1.1.1 # DNS-Server (Pi selbst + Google + Cloudflare) + +# Statische Leases (Beispiele – nach Bedarf ergänzen) +# Format: dhcp-host=MAC-Adresse,gewünschte-IP,Hostname,Lease-Zeit +dhcp-host=00:11:22:33:44:55,192.168.178.10,mein-pc,24h +dhcp-host=b8:27:eb:xx:xx:xx,192.168.178.20,raspberry-main,infinite + +# DNS-Funktionen +# Lokale Domain +domain=lan.fritz.box +local=/lan.fritz.box/ + +# Adressen für lokale Namen (optional) +address=/fritz.box/192.168.178.1 +address=/homeserver.lan/192.168.178.5 +address=/router.lan/192.168.178.1 + +# Cache-Größe +cache-size=1000 + +# NTP-Server weitergeben (Option 42) +dhcp-option=42,0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org + +# Optional: PXE-Boot deaktivieren (spart Logs) +pxe-prompt="Kein PXE", 0 \ No newline at end of file