# DNS spoofing + apache2

<figure><img src="/files/FIWKtzbf2LIqUxEOefKl" alt=""><figcaption></figcaption></figure>

First, set you *html page* and start the ***apache2*** service.

<figure><img src="/files/za9i3GLwgswK8zmXfPC9" alt=""><figcaption></figcaption></figure>

Now, configure the ***`/etc/ettercap/etter.conf`*** and set these **2** variables to **0**.

<figure><img src="/files/ZJ3GSdsqd7pylfxeTgLr" alt=""><figcaption></figcaption></figure>

Third step, open the ***`/etc/ettercap/etter.dns`*** and set the domains you want to spoof.

<figure><img src="/files/SfoZWiAwcml1nwZy9ofY" alt=""><figcaption></figcaption></figure>

Now start an *ARP spoof* with **ettercap**.

<figure><img src="/files/nOFLmSDMz5wpBP0e7Cio" alt=""><figcaption></figcaption></figure>

Later than, go to *plugins* and double click the **dns\_spoof** plugin.

{% hint style="info" %}
This will **not** work if the website you are spoofing haves **HSTS** security.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hackzzz.gitbook.io/welcome/everything-about-and-notes/network-pentesting/dns-spoofing-+-apache2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
