Worse, if you have a large HOSTS file (which is what I suggest), the DNS client chokes your entire PC.
The DNS client acts as an intermediate step looking up (and remembering) internet names and addresses on your PC.
Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community.
Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Open the file from your program and use the standard faciliries for reading and writing text files.
If you'd prefer to manually install a hosts file yourself, I recommend you look at these sites: The most important thing to do before using large HOSTS files is to disable the Domain Name Service client ("DNS Client" or "Dns Cache") service on your machine.
It sounds bizarre, but the DNS client isn't needed to do DNS.
Now I need to ssh to each vm so when ip is changed, I have to check vm's ip and update /etc/hosts so that when next time ssh [email protected]_host would work.It's really no different from any other file out there. In those days, networks were small and managing a file with a handful of hosts was easy.If the "Stop" button isn't grayed out (it's grayed out in this picture), press the "Stop" button to stop the DNS Client service.Now you can install and use a really large HOSTS file on your PC!