DNS Spoofing with Bettercap not working

I am using Bettercap to perform a dns spoof / mitm in my home network.
It sometimes work and more of times it doesnt work . I cant figure out whats the problem …

These are the commands I use to perform it:-
set arp.spoof.fullduplex true
set arp.spoof.targets
set dns.spoof.address
set dns.spoof.all true
set dns.spoof.domains w3.org,*.w3.org
arp.spoof on
net.sniff on
dns.spoof on

It doesnt even work on http sites.
I have my browser’s history cleared. I can sniff the traffic but not able to send spoofed dns request.
Is it issue with bettercap?
Help is appreciated!

It can be a issue with your Wifi connection. Try getting closer to your Wifi. Also try ettercap which is a command line tool in Kali for spoofing. You can see if it works or not. If it does then your bettercap might not be working correctly.