&lt;?xml version="1.0" encoding="utf-8"?>
        <sphinx:docset>
            <sphinx:schema>
              <sphinx:field name="title"/>
              <sphinx:attr name="title" type="string"/>
              <sphinx:attr name="link" type="string"/>
              <sphinx:field name="content"/>
              <sphinx:attr name="content" type="string"/>
              <sphinx:attr name="pubDate" type="timestamp"/>
              
            </sphinx:schema>
            
            <sphinx:document id="1080 ">
              <title>&lt;![CDATA[Running dnsmasq with NetworkManager in Fedora]]></title>
              <link>&lt;![CDATA[/2019/06/10/running-dnsmasq-with-networkmanager-in-fedora/]]></link>
              <pubDate>1560128404</pubDate>
              <content>&lt;![CDATA[Here is a good link to do this:
https://fedoramagazine.org/using-the-networkmanagers-dnsmasq-plugin/
]]></content>
             </sphinx:document>
            
            <sphinx:document id="1081 ">
              <title>&lt;![CDATA[Fedora – dnsmasq with NetworkManager]]></title>
              <link>&lt;![CDATA[/2019/04/29/fedora-dnsmasq-with-networkmanager/]]></link>
              <pubDate>1556499543</pubDate>
              <content>&lt;![CDATA[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/
]]></content>
             </sphinx:document>
            
            <sphinx:document id="1082 ">
              <title>&lt;![CDATA[dnsmasq local name resolution with NetworkManager]]></title>
              <link>&lt;![CDATA[/2015/08/27/dnsmasq-local-resolution-networkmanager/]]></link>
              <pubDate>1440638106</pubDate>
              <content>&lt;![CDATA[Network Manager suports starting dnsmasq which helps you have a local cache for DNS thus getting faster resolution for the DNS queries.
Dnsmasq with netowrkmanager
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 =&amp;gt; 172.17.42,1
vm2 =&amp;gt; 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:
#!/bin/bash - #=============================================================================== # # FILE: add-dnsmasq.sh # # USAGE: ./add-dnsmasq.sh # # DESCRIPTION: # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: Amit Agarwal (aka), # ORGANIZATION: # REVISION: --- #=============================================================================== IPPRE=&#39;172.17.42.&#39; for i in {1..250} do echo &#34;address=/vm$i/$IPPRE$i&#34; &amp;gt;&amp;gt; /etc/NetworkManager/dnsmasq.d/hostnames echo &#34;ptr-record=vm$i,$IPPRE$i&#34; &amp;gt;&amp;gt; /etc/NetworkManager/dnsmasq.d/hostnames done Just run this script to add all the entries and restart dnsmasq by killing the already running instance. 🙂
]]></content>
             </sphinx:document>
            
            <sphinx:document id="1083 ">
              <title>&lt;![CDATA[dnsmasq not starting from NetworkManager with SELinux enabled.]]></title>
              <link>&lt;![CDATA[/2013/03/16/dnsmasq-starting-networkmanager-selinux-enabled/]]></link>
              <pubDate>1363433651</pubDate>
              <content>&lt;![CDATA[OpenWrt &amp;#8211; Dnsmasq (Photo credit: magicfab) 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.
First check if dnsmasq is indeed having issues because of SELinux:
grep -C 5 sealert /var/log/messages If you do see something then time to fix it.
grep dnsmasq /var/log/audit/audit.logaudit2allow -M mypol &amp;&amp; semodule -i mypol.ppsystemctl restart NetworkManager And with this, you should be done, though you might have to repeat this multiple times.
Related articles dnsmasq &amp;#8211; use with Network Manager. Fixing DNS Rebind on DD-WRT Dnsmasq ]]></content>
             </sphinx:document>
            
          
        </sphinx:docset>
