Flush pfSense DNS Cache
-
I'm really embaressed to have to ask this, but anyway:
My pfSense has an IPSec Tunnel to another site which has a dynamic IP address and a dyndns domain. The ip changed and the dynamic domain is updated, but pfsense won't resolve the new ip address. I guess it's cached within pfSense but I don't know how to flush the DNS Cache on pfSense. I already restarted dnsmasq but it still resolves to the old IP. Any ideas? -
I just had to work out the same thing, not sure if there is a better way but if you send a HUP to the dnsmasq process then it will reload it.
ssh to the pfSense box then
ps aux | grep dns
to get the process id
kill -HUP
to trigger the reload.
-
Or just go to Status > Services, and click the restart button on dnsmasq. Much easier, and it flushes the cache when restarting.
It's also documented here:
http://doc.pfsense.org/index.php/How_do_I_clear_the_DNS_Forwarder_cache%3F -
Well there you go sinac, you've got two answers now! Jimps is much easier than mine so I'd go with that.