This is a unique problem related to DNS queries(tcp/udp 53) even with correct UFW/iptables rules and does not relate to /etc/resolv.conf
I can ping google DNS 184.108.40.206 but cannot resolve google.com 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
Stateful matching iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
Note: vmnet 1/192.168.191.1/24, 192.168.191.130(guest), 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.
sudo ufw status numbered | grep 53
Note: UFW disabled on guest