Files
homeserver/dnsmasq.conf

87 lines
3.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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
dhcp-range=192.168.178.50,192.168.178.200,255.255.255.0,12h
# Gateway und DNS weitergeben
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
# Video
dhcp-host=EC:71:DB:D4:EB:00,192.168.178.210,reolink-hub,24h
dhcp-host=C4:8B:66:DD:01:2E,192.168.178.211,cam-spielhaus,24h
dhcp-host=C4:8B:66:DD:05:C4,192.168.178.212,cam-anbau,24h
dhcp-host=4C:6B:B8:A6:6B:82,192.168.178.213,cam-einfahrt,24h
dhcp-host=4C:6B:B8:A6:D0:52,192.168.178.214,cam-garage,24h
dhcp-host=1C:63:49:97:C5:BF,192.168.178.215,cam-wintergarten,24h
dhcp-host=94:B3:F7:DC:1C:EB,192.168.178.216,cam-klingel,24h
dhcp-host=58:2B:0A:A8:8C:6E,192.168.178.217,cam-flur,24h
# PV Anlage & Strom
dhcp-host=00:40:ad:93:92:2a,192.168.178.231,sma-sunnyisland,24h
dhcp-host=00:d0:93:2b:24:4f,192.168.178.232,sma-energymeter,24h
dhcp-host=00:15:bb:02:67:f5,192.168.178.233,sma-homemanager,24h
dhcp-host=00:40:AD:82:ED:7F,192.168.178.234,sma-stp,24h
dhcp-host=40:2A:8F:0E:46:46,192.168.178.236,EW11,24h
dhcp-host=D8:BC:38:45:FE:87,192.168.178.237,OpenDTU-45FE84,24h
dhcp-host=94:C9:60:4D:D6:0A,192.168.178.239,ZendureHub1200,24h
# Heizung und Klima
dhcp-host=00:0a:5c:1f:52:83,192.168.178.222,pCOWeb1F5283,24h
dhcp-host=DC:F5:05:0A:14:26,192.168.178.223,daikin-felix,24h
dhcp-host=70:66:55:0D:70:67,192.168.178.224,daikin-moritz,24h
dhcp-host=DC:F5:05:4D:A2:BB,192.168.178.225,daikin-schlafzimmer,24h
# DNS-Funktionen
# Lokale Domain
domain=schoedl.local
local=/schoedl.local/
# Adressen für lokale Namen (optional)
address=/fritz.box/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
# === 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