# Clients bypass pi hole to DNS2 and if hardcoded to Pi Hole, will not resolve

**URL:** <https://discourse.pi-hole.net/t/clients-bypass-pi-hole-to-dns2-and-if-hardcoded-to-pi-hole-will-not-resolve/41451>\
**Category:** Community Help\
**Created:** [December 10, 2020, 4:43am UTC](https://discourse.pi-hole.net/t/clients-bypass-pi-hole-to-dns2-and-if-hardcoded-to-pi-hole-will-not-resolve/41451 "2020-12-10T04:43:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aaron\_Bridgewater](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/aaron_bridgewater/32/20284_2.png) [@Aaron\_Bridgewater](https://discourse.pi-hole.net/u/Aaron_Bridgewater)\
**Post date:** [December 10, 2020, 4:43am UTC](https://discourse.pi-hole.net/t/clients-bypass-pi-hole-to-dns2-and-if-hardcoded-to-pi-hole-will-not-resolve/41451/1 "2020-12-10T04:43:59Z")

</div>

Token: [https://tricorder.pi-hole.net/78xd6jt4dk](https://tricorder.pi-hole.net/78xd6jt4dk)

Clients bypass pi hole to DNS2 and if hardcoded to Pi Hole, will not resolve

Just started using Pi Hole through docker on Win10 Pro.

Have router pointing at PiHole DNS server, and DNS 2 is 1.1.1.1

---

<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:** [December 10, 2020, 8:57pm UTC](https://discourse.pi-hole.net/t/clients-bypass-pi-hole-to-dns2-and-if-hardcoded-to-pi-hole-will-not-resolve/41451/2 "2020-12-10T20:57:05Z")

</div>

If you allow an additional DNS server next to Pi-hole in your router, that additional server **will** be used to bypass Pi-hole.

> [@Why should Pi-hole be my only DNS server?](https://discourse.pi-hole.net/t/why-should-pi-hole-be-my-only-dns-server/3376):
>
> Reduced Ad Blocking Capability The main reason you should Pi-hole as your only DNS server is that you will see increased performance in the blocking of ads. If you have two DNS servers (Pi-hole and something else), your network clients may not always query Pi-hole for name resolution. If a query happens to be answered from a non-Pi-hole DNS server, your block lists will not apply (since that DNS server doesn't know about them). All Queries Need To Go Through Pi-hole First Since other DNS serv…

---

<div class="post-metadata">

**Author:** ![Aaron\_Bridgewater](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/aaron_bridgewater/32/20284_2.png) [@Aaron\_Bridgewater](https://discourse.pi-hole.net/u/Aaron_Bridgewater)\
**Post date:** [December 10, 2020, 9:29pm UTC](https://discourse.pi-hole.net/t/clients-bypass-pi-hole-to-dns2-and-if-hardcoded-to-pi-hole-will-not-resolve/41451/3 "2020-12-10T21:29:43Z")

</div>

If I use Pi Hole as the only DNS server in my router, none of my clients can resolve DNS.

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [December 10, 2020, 9:35pm UTC](https://discourse.pi-hole.net/t/clients-bypass-pi-hole-to-dns2-and-if-hardcoded-to-pi-hole-will-not-resolve/41451/4 "2020-12-10T21:35:49Z")

</div>

That would indicate a problem with the Pi-hole or it's connectivity to your network.

---

<div class="post-metadata">

**Author:** ![Aaron\_Bridgewater](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/aaron_bridgewater/32/20284_2.png) [@Aaron\_Bridgewater](https://discourse.pi-hole.net/u/Aaron_Bridgewater)\
**Post date:** [December 10, 2020, 9:44pm UTC](https://discourse.pi-hole.net/t/clients-bypass-pi-hole-to-dns2-and-if-hardcoded-to-pi-hole-will-not-resolve/41451/5 "2020-12-10T21:44:10Z")

</div>

Can I give you my token? I am new to the Pi Hole world. 78xd6jt4dk

---

<div class="post-metadata">

**Author:** ![yubiuser](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/yubiuser/32/12100_2.png) [@yubiuser](https://discourse.pi-hole.net/u/yubiuser)\
**Post date:** [December 11, 2020, 10:05am UTC](https://discourse.pi-hole.net/t/clients-bypass-pi-hole-to-dns2-and-if-hardcoded-to-pi-hole-will-not-resolve/41451/6 "2020-12-11T10:05:55Z")

</div>

Check your network setup

```auto
172.17.0.2/16 does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)

IPV4_ADDRESS=192.168.0.21

*** [DIAGNOSING]: Discovering active DHCP servers (takes 10 seconds)
   Scanning all your interfaces for DHCP servers
   Timeout: 10 seconds
   
   DHCP packets received on interface eth0: 0
   DHCP packets received on interface sit0: 0
   DHCP packets received on interface lo: 0

```

Are you using unbound next to 1.1.1.1?

```auto
    PIHOLE_DNS_1=127.17.0.1
    PIHOLE_DNS_2=1.1.1.1

```

---

<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:** [December 11, 2020, 8:27pm UTC](https://discourse.pi-hole.net/t/clients-bypass-pi-hole-to-dns2-and-if-hardcoded-to-pi-hole-will-not-resolve/41451/7 "2020-12-11T20:27:46Z")

</div>

> [@Aaron\_Bridgewater](#):
>
> Can I give you my token? I am new to the Pi Hole worl

You are running Docker, so your debug log is somewhat less conclusive than for bare metal installations. In addition, it won't help in analysing your router's settings, regardless of Docker or bare metal installs.

As you are using Docker, address inconsistencies are to be expected, and may even be safely ignored depending on your chosen Docker network mode.

But you should not use your Pi-hole as upstream DNS for itself:

```auto
*** [DIAGNOSING]: Setup variables
    PIHOLE_DNS_1=127.17.0.1

```

That setting may well be one possible reason for:

> [@Aaron\_Bridgewater](#):
>
> If I use Pi Hole as the only DNS server in my router, none of my clients can resolve DNS.

Change that setting to a public DNS server and see if that already improves things for you.

---

<div class="post-metadata">

**Author:** ![Aaron\_Bridgewater](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/aaron_bridgewater/32/20284_2.png) [@Aaron\_Bridgewater](https://discourse.pi-hole.net/u/Aaron_Bridgewater)\
**Post date:** [December 16, 2020, 2:13am UTC](https://discourse.pi-hole.net/t/clients-bypass-pi-hole-to-dns2-and-if-hardcoded-to-pi-hole-will-not-resolve/41451/8 "2020-12-16T02:13:59Z")

</div>

I changed the DNS to public and I am getting replies in my query log now. The only client that shows on the log is 172.17.0.1. I believe that is Docker. Is there something I need to change with docker? I am thinking about installing ubuntu and trying PiHole with that. Would that be a better option?

---

<div class="post-metadata">

**Author:** ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)\
**Post date:** [January 6, 2021, 2:14am UTC](https://discourse.pi-hole.net/t/clients-bypass-pi-hole-to-dns2-and-if-hardcoded-to-pi-hole-will-not-resolve/41451/9 "2021-01-06T02:14:00Z")

</div>

Closed on January 6, 2021, 2:14am UTC

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
