Searching in the internet, I've found that the network manager uses dnsmasq under the hood, but the networkmanager doesn't list it as a dependency. This causes the bad behavior of creating a adhoc network to not work.
This should be handled by your distribution probably, I don't think we should be checking for NM dependencies.