dnsmasq local name resolution with NetworkManager
Network Manager suports starting dnsmasq which helps you have a local cache for DNS thus getting faster resolution for the DNS queries.
So, one thing that I have been thinking about is having a local name resolution for the VMs. So, I wanted something like this to work:
vm1 => 172.17.42,1
vm2 => 172.17.42,2
and so on …
To achieve this and reverse dns to work, we will add the entries in file “/etc/NetworkManager/dnsmasq.d/hostnames“. Just one more problem, adding so many entries manually? So, to help you with that, I created this small script:
Continue reading