Discussion:
How to flush/clear dns cache?
(too old to reply)
Bobb Shires
2016-06-15 16:14:29 UTC
Permalink
Hi,

What is the FreeBSD equivalent of the windows command ‘ipconfig /flushdns’?

Thank you!
Matthew Seaman
2016-06-15 16:35:11 UTC
Permalink
What is the FreeBSD equivalent of the windows command ‘ipconfig /flushdns’?
It depends.

If you're running the local_unbound service[*], then you can achieve a
similar effect by:

# service local_unbound restart

Otherwise: nothing. Unless you run some additional software specifically
for this purpose, FreeBSD doesn't keep a local cache of DNS lookups, so
there's nothing to do.

Unless you want to start chasing the operators of the recursive
resolvers you're using and ask them to flush their caches. (Hint: the
answer will be 'no' unless you can show a good reason, like their caches
having been poisoned or old data affecting a service that a lot of
people use.)

Cheers,

Matthew

[*] local_unbound is what is commonly used as it comes with the system
but there's a number of alternatives you could use from ports.

Loading...