Please follow the below template, it will help us to help you!
DNS queries to my local lan should be as fast as external queries
In /etc/hosts, I have an entry that looks like:
192.168.75.12 foo.mydomain.net foo
if I execute a “ping foo” from any machine on my network, the first ping (or ssh, or anything) takes several seconds to return. The pings themselves report 1-2ms.
But, “ping google.com” returns almost at once