Docker dnsmasq wildcard subdomains failure to support

I want any subdomain + main domain to point back to docker localhost for testing in my nginx+php docker
Ping should be
I do not want manually to add every single sub domain via --add-host
–add-host /etc/hosts is NOT enough for me, I really need wildcard support
why can’t I use dnsmasq wildcards in docker?
So simple yet so difficult…
Also why Docker removes my edit nano /etc/dnsmasq.conf settings all the time???

I get this error in Docker container
docker exec -it 437925a20935 sh -c ‘service dnsmasq restart’

  • Restarting DNS forwarder and DHCP server dnsmasq
    dnsmasq: setting capabilities failed: Operation not permitted

Please help I am going insane over here!