Skip to content

Instantly share code, notes, and snippets.

@thinktainer
Created February 11, 2017 19:15
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/1797fad4e4de40e5087632eb3fcdcee7 to your computer and use it in GitHub Desktop.
Save thinktainer/1797fad4e4de40e5087632eb3fcdcee7 to your computer and use it in GitHub Desktop.
interface=lo
bind-interfaces
listen-address=127.0.0.1
address=/dev/127.0.0.1
resolv-file=/etc/dnsmasq-resolv.conf
[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
# Configuration for resolvconf(8)
# See resolvconf.conf(5) for details
resolv_conf=/etc/resolv.conf
# If you run a local name server, you should uncomment the below line and
# configure your subscribers configuration files below.
name_servers=127.0.0.1
dnsmasq_resolv=/etc/dnsmasq-resolv.conf
#
#name_servers=8.8.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment