Search code examples
cgethostbyname

How can we cache the result of gethostbyname?


My proxy server is spending a lot of time resolving the domain names,is there a way to make gethostbyname cache the result?


Solution

  • Use nscd, the name serivce caching daemon