Network manager Internet sharing and dnsmasq conflict

view story

http://askubuntu.com – I am sharing internet from eth1 to eth2. I do this by editing the eth2 properties and setting method to Shared to other computers. I also use dnsmasq for dns caching. Now if I enable Internet sharing I have to stop the existing dnsmasq instance as network manager starts its own dnsmasq instance. But this new dnsmasq instance has no dns caching options. Now my dns query is taking more time. How can I change the dnsmasq or network manager so when network manager starts the dnsmasq it also support dns caching? Some FAQ. "taking more time", how much more? Using dns caching it take 0ms. (HowTos)