[Dnsmasq-discuss] Is there any method to flush dnsmasq's cache without interrupt service

胡文峰 JasonHu at boyaa.com
Fri Mar 21 07:27:07 UTC 2014

Sorry Sir.

But /etc/init.d/dnsmasq reload do not flush cache, neither do SIGHUP.

I am using Centos 5.8 64bit with package dnsmasq-2.45-1.1.el5_3 .

Searching the man dnsmasq, there seems one method: enable dnsmasq option --clear-on-reload and update /etc/resolv.conf file , but this is just a workaround!

Mail: JasonHu at boyaa.com<mailto:JasonHu at boyaa.com>
Boyaa Interactive

From: Dnsmasq-discuss<mailto:dnsmasq-discuss-bounces at lists.thekelleys.org.uk>
Date: 2014-03-21 15:17
To: dnsmasq-discuss at lists.thekelleys.org.uk<mailto:dnsmasq-discuss at lists.thekelleys.org.uk>
Subject: Re: [Dnsmasq-discuss] Is there any method to flush dnsmasq's cache without interrupt service

Le 21/03/2014 07:59, 胡文峰 a écrit :
> HI friends:
> I want to flush the dnsmasq cache under some conditions! But when I run
> /etc/init.d/dnsmasq restart, the dns service got interrupted for 1-2
> seconds!
> So I wonder is there any methods to ask dnsmasq to drop all the cache
> without interrupt the dns service?

Send a SIGHUP message to the running dnsmasq instance. Maybe
/etc/init.d/dnsmasq reload will do that on your system, or you can just
kill -HUP the PID of your dnsmaq instance or killall -HUP dnsmasq.

Other methods exist; see 'man dnsmaq' and search for 'cache'.

> Best Regards!


Dnsmasq-discuss mailing list
Dnsmasq-discuss at lists.thekelleys.org.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20140321/56b8e377/attachment.html>

More information about the Dnsmasq-discuss mailing list