This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
hermes/ansible/roles/dnsmasq/files/dnsmasq.conf

54 lines
1.7 KiB
Text
Raw Normal View History

2023-03-12 19:33:25 +00:00
# Disable /etc/resolv.conf
no-resolv
2023-03-11 23:49:55 +00:00
# Upstream DNS server
server=192.168.30.1
2023-03-12 19:33:25 +00:00
# Always serve .dmz locally
local=/dmz/
# Put all clients in the dmz domain
dhcp-fqdn
2023-03-11 23:49:55 +00:00
# Don't read /etc/hosts
no-hosts
# Domain is automatically added to if missing
expand-hosts
# Domain that is used for DHCP on this network
domain=dmz
# IPv4 DHCP range
2023-05-16 18:59:36 +00:00
dhcp-authoritative
dhcp-range=192.168.30.50,192.168.30.127,15m
2023-03-11 23:49:55 +00:00
# Predefined DHCP hosts
dhcp-host=b8:27:eb:b9:ab:e2,esrom
2023-04-12 21:24:32 +00:00
dhcp-host=ca:fe:c0:ff:ee:03,max,192.168.30.3
dhcp-host=ca:fe:c0:ff:ee:08,maestro,192.168.30.8
dhcp-host=dc:a6:32:7b:e2:11,iris,192.168.30.9
2023-06-13 21:22:33 +00:00
dhcp-host=ca:fe:c0:ff:ee:0a,thecloud,192.168.30.10
2023-07-16 11:50:34 +00:00
dhcp-host=52:54:00:72:e0:9a,forum,192.168.30.11
2023-03-11 23:49:55 +00:00
# Advertise router
dhcp-option=3,192.168.30.1
2023-03-12 19:33:25 +00:00
# Always send the IPv6 DNS server address (this machine)
dhcp-option=option6:dns-server,[2a02:58:19a:f730::1]
# Advertise SLAAC for the given prefix
dhcp-range=2a02:58:19a:f730::, ra-stateless, ra-names
# Do not advertise default gateway via DHCPv6
ra-param=*,0,0
2023-03-11 23:49:55 +00:00
# Alias public IP address to local
alias=84.245.14.149,192.168.30.8
2023-03-12 19:33:25 +00:00
# Override DNS servers for our domains
server=/pizzapim.nl/192.168.30.7
server=/geokunis2.nl/192.168.30.7
server=/pim.kunis.nl/192.168.30.7
2023-05-17 11:46:10 +00:00
server=/kun.is/192.168.30.7
2023-03-12 19:33:25 +00:00
# Enable extended logging
log-dhcp
log-queries
# Resolve dns.dmz to addresses on main NIC
2023-04-26 13:13:25 +00:00
interface-name=hermes.dmz,ens4
# Non-conventional port because we also run nsd on this machine
port=5353
# Override addresses of name servers
address=/ns.pizzapim.nl/ns.geokunis2.nl/ns.pim.kunis.nl/192.168.30.7
address=/ns.pizzapim.nl/ns.geokunis2.nl/ns.pim.kunis.nl/2a02:58:19a:f730:c8fe:c0ff:feff:ee07
2023-04-17 06:56:01 +00:00
# Advertise DNS server
dhcp-option=option:dns-server,192.168.30.1
# Change DHCP leases file
dhcp-leasefile=/mnt/data/dnsmasq.leases