dnsmasq.conf aktualisiert

This commit is contained in:
2025-11-23 19:49:43 +00:00
parent f03ef4ff70
commit 70e8387e20

View File

@@ -1,22 +1,45 @@
# Allgemein
interface=eth0
# IPv4 + IPv6 explizit anhören
listen-address=192.168.178.5
listen-address=::1
listen-address=fe80::1%eth0
bind-interfaces
domain-needed
bogus-priv
expand-hosts
no-resolv # Wir haben keinen eigenen Resolver mehr
no-hosts # /etc/hosts wird von Pi-hole verwaltet
# 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)
dhcp-option=option:domain-search,schoedl.local
dhcp-option=option:router,192.168.178.1 # Gateway
dhcp-option=option:domain-search,schoedl.local
dhcp-option=option:ntp-server,192.168.178.5 # NTP = Pi (chrony)
# ==================== IPv6 ====================
# Router Advertisements aktivieren (wichtig!)
enable-ra
# SLAAC + stateless DHCPv6 (empfohlen für Heimnetze)
# ::100 bis ::ffff im lokalen /64-Präfix (wird automatisch vom Prefix des Pis abgeleitet)
dhcp-range=::100,::ffff,constructor:eth0,64,12h
# IPv6-DNS und Suchdomain an Clients weitergeben
dhcp-option=option6:dns-server,[::1] # Pi selbst über IPv6
dhcp-option=option6:domain-search,schoedl.local
# Statische Leases (Beispiele nach Bedarf ergänzen)
# Format: dhcp-host=MAC-Adresse,gewünschte-IP,Hostname,Lease-Zeit
# Home Server
dhcp-host=90:09:D0:5B:03:95,192.168.178.251,saturn,24h
dhcp-host=DC:EF:09:C6:21:7B,192.168.178.2,switch24,24h
# Home Automation
dhcp-host=DC:A6:32:2D:38:5A,192.168.178.243,homematic-raspi,24h
dhcp-host=02:49:ED:E0:45:16,192.168.178.242,homeassistant,24h
@@ -50,14 +73,14 @@ local=/schoedl.local/
# 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
address=/homeserver.schoedl.local/192.168.178.5
address=/router.schoedl.local/192.168.178.1
address=/jupiter.schoedl.local/192.168.178.13
address=/saturn.schoedl.local/192.168.178.15
# Cache-Größe
cache-size=1000
# === DNS an Pi-hole delegieren (wichtig!) ===
cache-size=0 # Kein eigener Cache → Pi-hole macht das
server=127.0.0.1#53 # Pi-hole hört auf demselben Pi auf Port 53
# Alternativ (bei IPv6-Problemen): server=192.168.178.5#53
# 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