[Dnsmasq-discuss] Flush the DNS Cache of dnsmasq without restarting it.

Dominick C. Pastore dominickpastore at dcpx.org
Thu Mar 4 14:17:05 UTC 2021


There's also SIGHUP:

"When it receives a SIGHUP, dnsmasq clears its cache and then re-loads /etc/hosts and /etc/ethers and any file given by --dhcp-hostsfile, --dhcp-hostsdir, --dhcp-optsfile, --dhcp-optsdir, --addn-hosts or --hostsdir. The DHCP lease change script is called for all existing DHCP leases. If --no-poll is set SIGHUP also re-reads /etc/resolv.conf. SIGHUP does NOT re-read the configuration file."

(From the man page.)

--
Nick Pastore


On Thu, Mar 4, 2021, at 4:48 AM, Florent Fourcot wrote:
> Hello,
> 
> You should have a look on ClearCache method of D-Bus interface, or 
> --clear-on-reload option (the second one is working only on specific use 
> cases)
> 
> Best regards,
> 
> -- 
> Florent Fourcot.
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
>



More information about the Dnsmasq-discuss mailing list