-
Notifications
You must be signed in to change notification settings - Fork 0
dnsmasq
Samuel Tauil edited this page Apr 6, 2018
·
2 revisions
Check
/etc/resolv.conf to this:nameserver 127.0.0.1
Edit the
dnsmasq.conf file:sudo vi /etc/dnsmasq.conf
Add these lines to the that file:
interface=eth0 no-hosts addn-hosts=/etc/hosts.dnsmasq
Now create the database file
/etc/hosts.dnsmasq for your DNS entries (use tab between ip and hostname):192.168.0.1 master.thecloudlab.com 192.168.0.2 node1.thecloudlab.com
Restart the
dnsmasq servicesystemctl restart dnsmasq
Test it on client by doing direct and reverse resolution:
nslookup master.thecloudlab.com nslookup 1.0.168.192.in-addr.arpa