Running dnsmasq with NetworkManager in Fedora
Here is a good link to do this:
https://fedoramagazine.org/using-the-networkmanagers-dnsmasq-plugin/
Here is a good link to do this:
https://fedoramagazine.org/using-the-networkmanagers-dnsmasq-plugin/
I have been thinking of writing about this for long time but someone else did and it is nice write-up so here is the link – https://fedoramagazine.org/using-the-networkmanagers-dnsmasq-plugin/
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
Some time back I posted on dnsmasq starting from Network Manager and how to setup dnsmasq.
Now, couple of days back , I setup dnsmasq in NetworkManager but was astonished to see that there was no dnsmasq running. I checked with dig and saw that there was no response from localhost for dns queries. Checked “ps -eaf|grep dns” and found that there was no dnsmasq running. I knew that once you mention “dns=dnsmasq” in the NetworkManager then it should start up but that was not happening. And then I checked audit log, found that some permissions were denied by SELinux.
Continue reading