User Tools

Site Tools


dnsmasq

This is an old revision of the document!


In /etc/dnsmasq.conf, ensure conf-dir is set to /etc/dnsmasq.d

Then, in dnsmasq.d, create a new config file:

no-dhcp-interface=ens5  # Disable DHCP
bogus-priv  # Rev lookup for IP is not sent upstream
domain=test.dev  # My domain name
expand-hosts  #  Host names will have domain name added
local=/test.dev$/  # Queries for this domain are only answered by dnsmasq; dont resolve externally
domain-needed  # dont forward plain names without dots to upstream
no-resolv  # Dont use /etc/resolv.conf as upstream
no-poll  # Similar to above
server=8.8.8.8
server=8.8.4.4

#no-hosts  # To skip /etc/hosts
#addn-hosts=  # To use a different file than /etc/hosts

#bind-interfaces  # Listen to specific interface, not all
#listen-address=127.0.0.1  # Interface address on which to listen
dnsmasq.1788782192.txt.gz · Last modified: by reddy

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki