I'm looking for a way to cache the hosts file, the resolv.conf file and new DNS entries and the closest thing that doesn't quite work is nscd. Nscd will happily cache DNS requests that are present in the hosts file but when a server is requested that is not in the hosts file, the hosts file is read.
I'm trying to save power by not having the hard drive run all the time but everytime I visit a new page on the same site, the hard drive spins up just to read the hosts file to check domains.
Is there any way I can make it where the hosts and resolv.conf file are stored in memory then when a new domain is requested, the memory holding hosts.conf is then scanned instead of requiring disk access just to search the hosts file?
/etcthat the disk spins up? Would the disk not spin up to e.g. store files used for the browser cache, or to perform ordinary logging operations?