Last active
August 24, 2017 19:10
-
-
Save thinktainer/9222924f65bb21a4712bc483e51db71a to your computer and use it in GitHub Desktop.
dnsmasq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" | |
# | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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