As most of us are aware, any computer with Internet facility uses a DNS server offered by the Internet Service Provider (ISP). As a rule, the DNS server exclusively serves the ISP’s customers but inevitably has some information caught by the previous users of the server.
This inherent deficiency has certain undesirable effects as it may pave the way for a nameserver's clients to innocuously contact some unknown malicious hosts for certain services and open up the possibility for the web traffic, email and other important network data to be diverted to systems under the attacker's control.
Another common method employed of DNS cache poisoning is the use of a recursive query sent by the attacker. The query can compel the target server to connect to the authoritative source of the domain in the query. Once connected, distorted information about one or more domains might be sent to the querying server and posted to the server’s cache. There are also several other methods attackers use to poison DNS caches.