<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Re: [Dnsmasq-discuss] Is there any method to flush dnsmasq's cache without interrupt service</title>
<meta name="GENERATOR" content="MSHTML 11.00.9600.16412">
<style>
BLOCKQUOTE {
MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em; MARGIN-TOP: 0px
}
OL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
UL {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
DIV.FoxDiv20140321152224629501 {
COLOR: #000000
}
P {
MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
BODY {
FONT-SIZE: 10.5pt; FONT-FAMILY: Microsoft YaHei UI; COLOR: #000000; LINE-HEIGHT: 1.5
}
</style>
</head>
<body style="MARGIN: 10px">
<div>Sorry Sir.</div>
<div> </div>
<div>But /etc/init.d/dnsmasq reload do not flush cache, neither do SIGHUP.</div>
<div> </div>
<div>I am using Centos 5.8 64bit with package dnsmasq-2.45-1.1.el5_3 .</div>
<div> </div>
<div> </div>
<div>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!</div>
<div> </div>
<div> </div>
<div> </div>
<hr style="HEIGHT: 1px; WIDTH: 210px" align="left" color="#b5c4df" size="1">
<div><span>
<div style="FONT-SIZE: 10.5pt; FONT-FAMILY: Microsoft YaHei UI; COLOR: #000000; LINE-HEIGHT: 1.5">
<div style="FONT-SIZE: 10pt; FONT-FAMILY: verdana; MARGIN: 10px">
<div style="FONT-FAMILY: 微软雅黑">JasonHu/胡文峰</div>
<div style="FONT-FAMILY: 微软雅黑">Mail: <a style="MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px" href="mailto:JasonHu@boyaa.com">
JasonHu@boyaa.com</a></div>
<div style="FONT-FAMILY: 微软雅黑">深圳市东方博雅科技有限公司</div>
<div style="FONT-FAMILY: 微软雅黑">Boyaa Interactive</div>
<div style="FONT-FAMILY: 微软雅黑">--------------------------------</div>
</div>
</div>
</span></div>
<div> </div>
<div style="BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; BORDER-BOTTOM: medium none; PADDING-BOTTOM: 0cm; PADDING-TOP: 3pt; PADDING-LEFT: 0cm; BORDER-LEFT: medium none; PADDING-RIGHT: 0cm">
<div style="FONT-SIZE: 12px; FONT-FAMILY: tahoma; BACKGROUND: #efefef; COLOR: #000000; PADDING-BOTTOM: 8px; PADDING-TOP: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px">
<div><b>From:</b> <a href="mailto:dnsmasq-discuss-bounces@lists.thekelleys.org.uk">Dnsmasq-discuss</a></div>
<div><b>Date:</b> 2014-03-21 15:17</div>
<div><b>To:</b> <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk">dnsmasq-discuss@lists.thekelleys.org.uk</a></div>
<div><b>Subject:</b> Re: [Dnsmasq-discuss] Is there any method to flush dnsmasq's cache without interrupt service</div>
</div>
</div>
<div>
<div class="FoxDiv20140321152224629501" style="BACKGROUND-COLOR: white">
<meta name="Generator" content="MS Exchange Server version 14.03.0157.000">
<!-- Converted from text/plain format -->
<p><font size="2">Le 21/03/2014 07:59, 胡文峰 a écrit :<br>
> HI friends:<br>
> I want to flush the dnsmasq cache under some conditions! But when I run<br>
> /etc/init.d/dnsmasq restart, the dns service got interrupted for 1-2<br>
> seconds!<br>
> So I wonder is there any methods to ask dnsmasq to drop all the cache<br>
> without interrupt the dns service?<br>
<br>
Send a SIGHUP message to the running dnsmasq instance. Maybe<br>
/etc/init.d/dnsmasq reload will do that on your system, or you can just<br>
kill -HUP the PID of your dnsmaq instance or killall -HUP dnsmasq.<br>
<br>
Other methods exist; see 'man dnsmaq' and search for 'cache'.<br>
<br>
> Best Regards!<br>
<br>
Amicalement,<br>
--<br>
Albert.<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
Dnsmasq-discuss@lists.thekelleys.org.uk<br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</font></p>
</div>
</div>
</body>
</html>