# Manual DNS bypasses the pihole

**URL:** <https://discourse.pi-hole.net/t/manual-dns-bypasses-the-pihole/68357>\
**Category:** docker\
**Created:** [February 15, 2024, 2:58pm UTC](https://discourse.pi-hole.net/t/manual-dns-bypasses-the-pihole/68357 "2024-02-15T14:58:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kykkus](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/kykkus/32/35459_2.png) [@Kykkus](https://discourse.pi-hole.net/u/Kykkus)\
**Post date:** [February 15, 2024, 2:58pm UTC](https://discourse.pi-hole.net/t/manual-dns-bypasses-the-pihole/68357/1 "2024-02-15T14:58:07Z")

</div>

Hi, I'm here again.

I have a pihole on docker in a mikrotik routerboard.

Everything works, but if I put the DNS manually in a PC for example 8.8.8.8 instead of the IP of the pihole or instead of leaving the DHCP. The pihole is bypassed and nothing filters anymore...

I'm almost sure it's not a mikrotik setting because if I turn off the container it gives me the error: DNS\_PROBE\_STARTED  
(with Google DNS) if I turn on the container I surf the internet but without pihole filtering... what did I do wrong?

Thank you

debug token is: [https://tricorder.pi-hole.net/CdUDi8Ok/](https://tricorder.pi-hole.net/CdUDi8Ok/)

---

<div class="post-metadata">

**Author:** ![rdwebdesign](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rdwebdesign/32/51363_2.png) [@rdwebdesign](https://discourse.pi-hole.net/u/rdwebdesign)\
**Post date:** [February 15, 2024, 4:02pm UTC](https://discourse.pi-hole.net/t/manual-dns-bypasses-the-pihole/68357/2 "2024-02-15T16:02:19Z")

</div>

> [@Kykkus](#):
>
> if I put the DNS manually in a PC for example 8.8.8.8 instead of the IP of the pihole or instead of leaving the DHCP. The pihole is bypassed and nothing filters anymore

This is expected.

When you manually set `8.8.8.8` you are telling the PC to send DNS queries to `8.8.8.8`.

Why are you manually changing the DNS?

---

<div class="post-metadata">

**Author:** ![Kykkus](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/kykkus/32/35459_2.png) [@Kykkus](https://discourse.pi-hole.net/u/Kykkus)\
**Post date:** [February 15, 2024, 5:24pm UTC](https://discourse.pi-hole.net/t/manual-dns-bypasses-the-pihole/68357/4 "2024-02-15T17:24:38Z")

</div>

Thanks for the reply, for two reasons: I have devices that have soulbind dns other than pihole and I was looking for a way to filter those devices. the other reason is that I would like to avoid a user manually entering DNS to bypass the pihole filters. Is there a way to force the use of pihole as a DNS server? I put some NAT rules in the router to force this, in fact if I turn off the pihole it doesn't matter which DNS I put, I don't surf the internet, while if I turn on the pihole if I have its IP as DNS it filters if I have other DNS it is bypassed.. ..

---

<div class="post-metadata">

**Author:** ![rdwebdesign](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rdwebdesign/32/51363_2.png) [@rdwebdesign](https://discourse.pi-hole.net/u/rdwebdesign)\
**Post date:** [February 15, 2024, 5:50pm UTC](https://discourse.pi-hole.net/t/manual-dns-bypasses-the-pihole/68357/5 "2024-02-15T17:50:47Z")

</div>

> [@Kykkus](#):
>
> the other reason is that I would like to avoid a user manually entering DNS to bypass the pihole filters. Is there a way to force the use of pihole as a DNS server?

Not using Pi-hole.

You'll need a firewall to achieve what you want.

---

<div class="post-metadata">

**Author:** ![DL6ER](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dl6er/32/281_2.png) [@DL6ER](https://discourse.pi-hole.net/u/DL6ER)\
**Post date:** [February 15, 2024, 6:04pm UTC](https://discourse.pi-hole.net/t/manual-dns-bypasses-the-pihole/68357/6 "2024-02-15T18:04:27Z")

</div>

> [@Kykkus](#):
>
> I put some NAT rules in the router to force this

They seem to be incorrect if it is not working. Remember to include an exception for the Pi-hole itself out, otherwise, it cannot reach any name servers either, effectively resulting in an endless loop of DNS requests and no Internet connectivity as a result.

We have documentation how to do it with the popular FritzBox routers, maybe you can get some inspiration here:

> **[Fritz!Box (EN) - Pi-hole documentation](https://docs.pi-hole.net/routers/fritzbox/#optional-allow-dns-queries-only-from-the-pi-hole)**

---

<div class="post-metadata">

**Author:** ![Kykkus](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/kykkus/32/35459_2.png) [@Kykkus](https://discourse.pi-hole.net/u/Kykkus)\
**Post date:** [February 15, 2024, 7:46pm UTC](https://discourse.pi-hole.net/t/manual-dns-bypasses-the-pihole/68357/7 "2024-02-15T19:46:13Z")

</div>

I have already spoken in the mikrotik forum, I have watched a hundred tutorials and the firewall rules are always the same...  
and then I wonder if all the DNS were not diverted to the pihole because if I turn off the pihole docker I stop going to the internet? I don't understand where the mistake is.

I put the google dns with pihole turned on and it bypasses the pihole

I put the pihole dns with pihole turned on and everything works

I put the google dns with pihole turned off I get the error: DNS\_PROBE\_STARTED

I put the pihole dns with pihole turned off I get the error: DNS\_PROBE\_STARTED

I can't understand why...

EDIT:

With pihole docker turn on:

```auto
dig google.com @8.8.8.8 +short

xxx.xxx.xxx.xxx

```

With pihole docker turn off:

```auto

dig google.com @8.8.8.8 +short

; <<>> DiG 9.16.45 <<>> google.com @8.8.8.8 +short
;; global options: +cmd
;; connection timed out; no servers could be reached

```

---

<div class="post-metadata">

**Author:** ![Kykkus](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/kykkus/32/35459_2.png) [@Kykkus](https://discourse.pi-hole.net/u/Kykkus)\
**Post date:** [February 19, 2024, 7:59am UTC](https://discourse.pi-hole.net/t/manual-dns-bypasses-the-pihole/68357/9 "2024-02-19T07:59:34Z")

</div>

Good morning, i start with a fresh pihole installation and I confirm that it is a Pihole problem (maybe I made some settings wrong) because from the Pihole log I see that the client connects to Pihole despite having static DNS set. Except that pihole doesn't want to filter it... Can anyone tell me where I went wrong?

WITH STATIC GOOGLE DNS:

```auto
query[A] dns.google from IP
Feb 19 08:52:39: cached dns.google is 8.8.4.4
Feb 19 08:52:39: cached dns.google is 8.8.8.8
Feb 19 08:52:39: query[HTTPS] dns.google from IP
Feb 19 08:52:39: forwarded dns.google to 1.1.1.1
Feb 19 08:52:39: validation result is SECURE
Feb 19 08:52:39: reply dns.google is NODATA

```

WITH PIHOLE DNS

```auto
query[A] www.google.com from IP
Feb 19 08:48:39: forwarded www.google.com to 1.1.1.1
Feb 19 08:48:39: query[HTTPS] www.google.com IP
Feb 19 08:48:39: forwarded www.google.com to 1.1.1.1
Feb 19 08:48:39: validation result is INSECURE
Feb 19 08:48:39: reply www.google.com is <HTTPS>
Feb 19 08:48:39: validation result is INSECURE
Feb 19 08:48:39: reply www.google.com is xxx.xxx.xxx.xxx

```

ALSO THIS WITH STATIC DNS GOOGLE:

```auto
query[A] dns.google from IP
Feb 19 09:01:25: forwarded dns.google to 1.1.1.1
Feb 19 09:01:25: query[HTTPS] dns.google from IP
Feb 19 09:01:25: forwarded dns.google to 1.1.1.1
Feb 19 09:01:25: validation result is SECURE
Feb 19 09:01:25: reply dns.google is NODATA
Feb 19 09:01:25: validation result is SECURE
Feb 19 09:01:25: reply dns.google is 8.8.4.4
Feb 19 09:01:25: reply dns.google is 8.8.8.8

```

DEBUG TOKEN:

[https://tricorder.pi-hole.net/e25l7kbV/](https://tricorder.pi-hole.net/e25l7kbV/)

---

<div class="post-metadata">

**Author:** ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)\
**Post date:** [February 19, 2024, 1:23pm UTC](https://discourse.pi-hole.net/t/manual-dns-bypasses-the-pihole/68357/10 "2024-02-19T13:23:28Z")

</div>

Pi-hole only blocks what you configure it to block.

Your debug log does not show any specific blocks for `www.google.com` nor `dns.google`.

Unless one of your blocklists would be blocking `www.google.com` and `dns.google` specifically, those logs look entirely expected.
