Skip to content

Instantly share code, notes, and snippets.

@thinktainer
Last active August 24, 2017 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinktainer/9222924f65bb21a4712bc483e51db71a to your computer and use it in GitHub Desktop.
Save thinktainer/9222924f65bb21a4712bc483e51db71a to your computer and use it in GitHub Desktop.
dnsmasq
interface=lo
bind-interfaces
listen-address=127.0.0.1
address=/dev/127.0.0.1
server=/lan/192.168.100.1
domain=lan,192.168.0.0/24
conf-file=/etc/dnsmasq-dynamic-resolv.conf
resolv-file=/etc/dnsmasq-resolv.conf
#no-resolv
# Configuration for resolvconf(8)
# See resolvconf.conf(5) for details
name_servers=127.0.0.1
search_domains=lan
# If you run a local name server, you should uncomment the below line and
# configure your subscribers configuration files below.
dnsmasq_conf=/etc/dnsmasq-dynamic-resolv.conf
dnsmasq_resolv=/etc/dnsmasq-resolv.conf
name_servers_append=8.8.8.8
replace="server/telecomplus.internal/tp.private"
#
[Unit]
Description=DHCP server for local dev domain.
Wants=network-online.target
After=network.target network-online.target
[Service]
Type=forking
ExecStart=/usr/bin/dnsmasq -C /etc/dnsmasq-tld-dev.conf --pid-file=/var/run/dnsmasq-tld-dev.pid -u dnsmasq
PIDFile=/var/run/dnsmasq-tld-dev.pid
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment