A technique for keeping a malicious botnet in operation by constantly changing the botnet command-and-control server’s domain name using a domain-generation algorithm. Domain fluxing makes it difficult for network administrators and law enforcement authorities to shut down the botnet’s command-and-control infrastructure.