If I understand your post correctly, then
* pinging the DNS server from the host works
* DNS resolution on the host works
* DNS resolution in the container does NOT work
* but pinging the DNS server from the container works (?)
Can you "manually" resolve domain names e.g. using dig -t A...