hetzner-dhcp/config/dnsmasq/dnsmasq.conf
2020-04-07 21:40:58 +02:00

55 lines
1.8 KiB
Plaintext

# Configuration file for dnsmasq.
#
# Format is one option per line, legal options are the same
# as the long options legal on the command line. See
# "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spaces.
bogus-priv
# Add local-only domains here, queries in these domains are answered
# from /etc/hosts or DHCP only.
local=/hetzner.ffrs/
# You can control how dnsmasq talks to a server: this forces
# queries to 10.1.2.3 to be routed via eth1
# server=10.1.2.3@eth1
server=1.1.1.1
server=1.0.0.1
#server=2606:4700:4700::1111@ppp0
#server=2606:4700:4700::1001@ppp0
# If you want dnsmasq to listen for DHCP and DNS requests only on
# specified interfaces (and the loopback) give the name of the
# interface (eg eth0) here.
# Repeat the line for more than one interface.
interface=lan
# Set the domain for dnsmasq. this is optional, but if it is set, it
# does the following things.
# 1) Allows DHCP hosts to have fully qualified domain names, as long
# as the domain part matches this setting.
# 2) Sets the "domain" DHCP option thereby potentially setting the
# domain of all systems configured by DHCP
# 3) Provides the domain part for "expand-hosts"
domain=hetzner.ffrs
# Uncomment this to enable the integrated DHCP server, you need
# to supply the range of addresses available for lease and optionally
# a lease time. If you have more than one network, you will need to
# repeat this for each network on which you want to supply DHCP
# service.
dhcp-range=172.16.0.100,172.16.0.200,12h
# do not read /etc/resolv.conf
no-resolv
log-facility=/var/log/dnsmasq.log
log-queries
log-async
# Include all files in a directory which end in .conf
conf-dir=/etc/dnsmasq.d/,*.conf