domain name system – Ubuntu Firewall blocking DNS requests to VMWARE guest

I can ping to google DNS but cannot resolve after turning on the host ufw.
Tried searching everywhere and updated ufw and iptables accordingly to allow DNS queries and allow established connection.

My numbered ufw status related to DNS is

Screenshot UFW rules

Note: vmnet 1/,, eno4 Host public interface.

The strange thing is when I turn off the host ufw, everything works perfectly on guests side. However, I am able to ping any IP addresses even after turning on the firewall.