I'm looking for a way to flush the local DNS cache on a CentOS 6.
The system is not running any DNS server or anything, and I wish to let every DNS query go out to the configured nameserver, even for the duplicate ones.
Most of what I found online tell me to do service nscd restart
, reload or do nscd -i hosts
. However, none seems to flush the cache.
So I'm wondering if anyone has an idea on how I might do this. Is there some kind of switch in the kernel I need to flip? Any kind of work around is fine as well.
wget -e 'http_proxy=localhost:3128' xxx.com
) I can see the query is being forwarded correctly, but all subsequent ones are not. If I wait long enough (cache expires), then it'll work again. – zee Mar 11 '13 at 19:24