Domain Name System (DNS) queries for botnet command and control provides a distributed infrastructure for storing, updating, and disseminating data that conveniently fits the need for a large-scale command and control system. The HTTP protocol is for the end-to-end communication between a client and a server. DNS provides not only a means of communication between computers, but also systematic mechanisms for naming, locating, distributing, and caching resources without tolerance. These features of DNS may be utilized to fulfill more effective command-and-control system than what HTTP servers may provide. The DNS server then responds with the appropriate data using the agreed upon semantics.