First: I have looked up my question on many sites on the Internet. I’ve even seen a couple that claimed to have found the ‘fix’… but they didn’t say what it was!
I have set a few IPs that I use frequently into the hosts file - to save the 3-4 seconds resolution time on each lookup.
My problem is simply that the hosts file is not being read. Pinging always resolves via DNS. Anyone know where the problem lies?
I have checked the nsswitch.conf. All appears to be OK…
passwd: compat
group: compat
hosts: files mdns_minimal [NOTFOUND=return] dns
networks: files dns
You say you think that it always resolves using the DNS servers, but you do not show us any evidence. How do you come to that conclusion?
BTW, you tried to make the computer texts in your post better readable by putting your whole post into a fixed font. There is no need for that. It is more pleasing to our eyes when you write yoor “story” in the default font of the forums and then copy/past your computer text between CODE tags. You get the CODE tags by clicking on the # bar in the post editor.
Also, when applicable, please copy/paste from the terminal screen not only the output, but also the prompt, the command, the output and the next prompt. Then we can see how you got what you want to show and you do not have to explain that. Example: