Hi,
The only thing what you should do install the package with apt and copy the config file. in the example. I don’t want to explain it deeper, everything is commented:
apt-get install dnsmasq
Open the /etc/dnsmasq.conf file and paste it:
# Add interfaces listen to listen-address=127.0.0.1 listen-address=172.17.9.254 ## Global settings expand-hosts # add domain names to hostfile bind-interfaces # blocks probe-machines attack stop-dns-rebind rebind-localhost-ok resolv-file=/etc/resolv.conf no-poll # prevent dnsmasq from polling the .resolv. file for changes no-hosts # Don't allow to resolv from /etc/hosts ## Domain options domain=example.com expand-hosts local=/example.com/ domain-needed # Never forward plain names bogus-priv # Never forward addresses in the non-routed address spaces. all-servers # dnsmaq will send request to all server, and use the first reply cache-size=2000 # DNS cache size neg-ttl=1800 # store the negatice replies until 30min ## Logging log-facility=/var/log/dnsmasq.log log-queries