Files
homeserver/dnsmasq.conf

38 lines
1.0 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
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