Originally Posted by ranjithtk
We have added more than three thousand entries in etc/hosts file for the local naming resolution. Some times naming resolution is not happening properly. We have restarted the network service after updated the hosts file. Kindly suggest what is correct procedure to update /etc/hosts file and is there any count limit for hosts file?
there is no rock hard limit to the number of entries in the /etc/hosts file. But three thousand seems like an awful lot. Bear in mind that the hosts file is searched first every time a DNS host name is being resolved, so a large hosts file like yours is very likely to slow down the DNS queries.
However, I can't think of a reason why it would sometimes fail altogether.
[X] Doc CPU