I used to work for a huge email sender (constant contact). Our mail servers needed to perform an absurd number of lookups while receiving and validating mail. When I was there, we used dnscache, running locally, on all our mail servers. But even with a local dnscache, the overhead of making DNS requests and handling their responses was high enough that adding nscd made a noticeable improvement in CPU usage.
bandie91|11 months ago
sleepydog|11 months ago
There's also probably some savings around not having to convert between the structures used by gethostbyname and DNS questions&answers.