Last active
October 18, 2020 17:37
-
-
Save jonniesweb/18bc271a9f7daadb5b5148d159430ad7 to your computer and use it in GitHub Desktop.
A Dnsmasq configuration similar to the one that I use for my local network
This file contains hidden or 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
domain-needed | |
bogus-priv | |
domain=home.mysite.com | |
local=/home.mysite.com/ | |
expand-hosts | |
#log all dns queries | |
log-queries | |
#dont use hosts nameservers | |
no-resolv | |
no-poll | |
# query all upstream servers simultaneously | |
all-servers | |
# turn off dhcp and tftp | |
no-dhcp-interface=eno1 | |
# listen on localhost, host net, bridge net | |
# listen-address=::1,127.0.0.1,192.168.1.2 | |
# log to stdout | |
log-facility=- | |
# use google and cloudflare as upstream nameservers | |
server=8.8.4.4 | |
server=8.8.8.8 | |
server=1.1.1.1 | |
# explicitly define host-ip mappings | |
address=/router/router.home.mysite.com/192.168.1.1 | |
address=/server/server.home.mysite.com/192.168.1.2 | |
address=/laptop/laptop.home.mysite.com/192.168.1.10 | |
address=/apps.home.mysite.com/192.168.1.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment