[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

local dns caching on a webserver


I have a very busy webserver running apache2

checking /proc/net/ip_conntrack and filtering port 53 i noticed that i have around 50 000 dns query in under 200 second.

destinations are by order:
- memcache cluster
- database
- external web services

I can't add these in my /etc/hosts file as they're all load balanced and each time our dns responds with a different IP 
so i'm thinking of caching these with dnsmasq or something similar.

Any cons of such an idea? any dnsmasq alternative ?

i know on ubuntu there's "dnscache" though there are certain limitations on that front.

PS: using dig, i noticed that every query takes around 3 ms to the data centers nameserver.

Reply to: