<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/8 Paul A. Procacci <span dir="ltr"><<a href="mailto:pprocacci@datapipe.com" target="_blank">pprocacci@datapipe.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class=""><div class="h5">On Wed, May 08, 2013 at 12:44:48PM +0800, Gao Yongwei wrote:<br>
> Hello,lists:<br>
> I am using varnish in a CentOS6.4 box,bellow is version info:<br>
><br>
> [root@cdn001 ~]# uname -r<br>
> 2.6.32-358.2.1.el6.x86_64<br>
> [root@cdn001 ~]# rpm -q varnish<br>
> varnish-3.0.3-3.el6.art.x86_64<br>
><br>
> and in my /etc/varnish/default.vcl<br>
> I use ' dns director':<br>
><br>
> director dnsdomain dns {<br>
> .list = {<br>
> .port = "80";<br>
> "10.0.0.0"/24;<br>
> }<br>
> .ttl = 12h;<br>
> }<br>
> notice that the ttl has been set to 12h because I want to reduse dns<br>
> resolve time,there is a domain <a href="http://www.example.com" target="_blank">www.example.com</a> which resolved to 10.0.0.2<br>
> ,after the dns changed <a href="http://www.example.com" target="_blank">www.example.com</a> to 10.0.0.3, varnish cannot find the<br>
> real backend as the ttl been set to 12h.so I must do a 'service varnish<br>
> reload' to update the director.<br>
><br>
> Is there any other way to flush the director ttl without a service reload<br>
> ? thanks.<br>
<br>
</div></div>I believe the answer is no. Varnish checks the hostname at compile time,<br>
and doesn't recheck it until the ttl expires.<br>
<br>
~Paul<br></blockquote><div style>See,when the ttl expires, varnish will flush the hostname ,so ,is there anyway we can manually flush the ttl immediately ?</div><div style>thanks.</div><div style> </div></div></div></div>