DNS poisoning works only if we open a certain website. For example, a victim enters in a browser, it will be directed to a phishing page.

What if we want to redirect the victim to for anything he enters in the browser? www.example.com

He should be redirected to

Is there a possible way?


When a victim is accessing there's no DNS queries involved, hence no DNS poisoning. DNS gives IP addresses based on hostnames, and that's already an IP address.

DNS (cache) poisoning refers to a specific attack where a resolver is tricked to cache fake records. Some resolvers will cache anything they get despite they didn't ask for it. These could be totally faked responses or smuggled as additional records within a response to an actual query.

Probably more relevant for your use case would be DNS hijacking with a fake resolver of some kind of man-in-the-middle attack, which could involve DNS spoofing or concentrate on modifying HTTP responses.


So DNS poisoning works only if we open a certain website

Not exactly, you could instead poison all hostnames in order to target all websites.

Since you tagged Ettercap, it appears you can use wildcards in the etter.dns file to achieve what you want, e.g.:

*.com       A

Not the answer you're looking for? Browse other questions tagged or ask your own question.