Dnsmasq configuration
From wikinotes
dnsmasq is configured in /etc/dnsmasq.conf
or /etc/dnsmasq.d/*.conf
.
All cli-params beginning with --*
can be used within the configuration files (omitting the --
)
Documentation
man dnsmasq
https://man.archlinux.org/man/extra/dnsmasq/dnsmasq.8.en
Locations
/etc/dnsmasq.conf
/etc/dnsmasq.conf.d/*.conf
Example
# /etc/dnsmasq.conf log-queries cache-size 1000 # LRU-cache keeps 1000 domain-names no-hosts # don't read hostnames in /etc/hosts no-resolv # only use dnsmasq-configured nameservers (ignore resolv.conf) bogus-priv # ignore reverse-lookups for private ip ranges domain-needed # don't forward A/AAAA records for non FQDNs (ex: 'localhost' vs 'foo.com') # use googleDNS server=8.8.8.8 server=8.8.4.4 server=2001:4860:4860:8888 server=2001:4860:4860:8844