Back
Usually /etc/hosts file doesn't support any wild card entries.
You need to use services like dnsmasq. To enable it in the dnsmasq, just edit the 'dnsmasq.conf' and add this line:
address=/example.com/127.0.0.1
To know about Linux join the Linux training
Do check out the video below
31k questions
32.8k answers
501 comments
693 users