I am admin for several Linux and FreeBSD servers and here is a problem I have:
The servers run a tool that does a lot of DNS queries every minute for the entire network. When it does a query, the result gets cached system-wide. If a DNS entry changes, the change gets picked up much later.
What would be the way to flush DNS cache? My boss almost pushes me to move software to Windows that has ipconfig /flushdns
call. I told my boss I will resolve this issue during weekend and on Monday all Linux and FreeBSD will flush cache. If I don't do that he will force me to make Windows servers and run software on them.
How to flush DNS cache on Linux and FreeBSD?