# Redirect all DNS requests to local hosted Pi-Hole

**URL:** <https://forum.mikrotik.com/t/redirect-all-dns-requests-to-local-hosted-pi-hole/160801>\
**Category:** Beginner Basics\
**Created:** [September 14, 2022, 4:01pm UTC](https://forum.mikrotik.com/t/redirect-all-dns-requests-to-local-hosted-pi-hole/160801 "2022-09-14T16:01:22Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![kaherdin](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/kaherdin/32/2891_2.png) [@kaherdin](https://forum.mikrotik.com/u/kaherdin)\
**Post date:** [September 17, 2022, 10:23am UTC](https://forum.mikrotik.com/t/redirect-all-dns-requests-to-local-hosted-pi-hole/160801/21 "2022-09-17T10:23:59Z")

</div>

> [@](#):
>
> I’m sorry if my answer didn’t help you to solve the problem.  
> […]  
> TLDR; get direct help from one of these: [https://mikrotik.com/consultants](https://mikrotik.com/consultants)

I simply asked for help in a beginners sub-forum. Thats it.  
No one forced you to “answer”.  
I read several of your other answers in the main forum and I have learned alot from you and other seniors here. But come on m8…

---

<div class="post-metadata">

**Author:** ![broderick](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/broderick/32/2709_2.png) [@broderick](https://forum.mikrotik.com/u/broderick)\
**Post date:** [September 17, 2022, 11:05am UTC](https://forum.mikrotik.com/t/redirect-all-dns-requests-to-local-hosted-pi-hole/160801/22 "2022-09-17T11:05:10Z")

</div>

> [@](#):
>
> You have to exclude pihole from being redirected … if not, pihole queries get redirected back to itself. You can make exception either in mangle rules or in NAT rule.

My dstnat rule:

```plaintext
add action=dst-nat chain=dstnat comment="Pihole Ubuntu " dst-port=53 in-interface-list=LAN protocol=tcp to-addresses=192.168.3.1 to-ports=53

```

As you can see it redirects DNS queries from LAN to 192.168.3.1 (my mk router IP) which in turn has my pihole IP (192.168.3.12) set as DNS server.  
There might be the reason why it has been working without any issue so far.  
So, I don’t know if I really need the rule to exclude pihole itself from being redirected as you said. Not sure though.

[Previous page](https://forum.mikrotik.com/t/redirect-all-dns-requests-to-local-hosted-pi-hole/160801.md?page=1)
