Skip to content

dnsmasq

Samuel Tauil edited this page Apr 6, 2018 · 2 revisions

Configuring dnsmasq to support your DNS server for OpenShift

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 service
systemctl restart dnsmasq
Test it on client by doing direct and reverse resolution:
nslookup master.thecloudlab.com
nslookup 1.0.168.192.in-addr.arpa

Clone this wiki locally