# Pi Hole running fine, DNS server not showing pi hole IP. VPN also not working

**URL:** <https://discourse.pi-hole.net/t/pi-hole-running-fine-dns-server-not-showing-pi-hole-ip-vpn-also-not-working/6308>\
**Category:** Help\
**Created:** [January 2, 2018, 4:08am UTC](https://discourse.pi-hole.net/t/pi-hole-running-fine-dns-server-not-showing-pi-hole-ip-vpn-also-not-working/6308 "2018-01-02T04:08:37Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![piholer](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/piholer/32/2459_2.png) [@piholer](https://discourse.pi-hole.net/u/piholer)\
**Post date:** [January 2, 2018, 4:08am UTC](https://discourse.pi-hole.net/t/pi-hole-running-fine-dns-server-not-showing-pi-hole-ip-vpn-also-not-working/6308/1 "2018-01-02T04:08:38Z")

</div>

#### Please follow the below template, it will help us to help you!

## Expected Behaviour:

After installing pi-hole on a pi zero v1.3, ipconfig for my desktop should show default gateway = IP address of pi zero.

## Actual Behaviour:

however it is still showing it to be that of the router. all features of pi hole are running. it is blocking ads fine.  
i had put a second DNS server of google as back up initially.  
additionally, I installed piVPN on the same pi-zero.  
when i connected my iphone to the vpn with default config, it worked, however no adblocking happened on the phone from cellular data.  
when i changed the config file of vpn to point to pi-zero IP, vpn didn't work.

**ipconfig log:**  
Windows IP Configuration

Ethernet adapter Ethernet:

Media State . . . . . . . . . . . : Media disconnected  
Connection-specific DNS Suffix . :

Wireless LAN adapter Local Area Connection\* 2:

Media State . . . . . . . . . . . : Media disconnected  
Connection-specific DNS Suffix . :

Ethernet adapter Ethernet 2:

Media State . . . . . . . . . . . : Media disconnected  
Connection-specific DNS Suffix . :

Wireless LAN adapter Wi-Fi:

Connection-specific DNS Suffix . :  
Link-local IPv6 Address . . . . . : y::y:y:y:y  
IPv4 Address. . . . . . . . . . . : x.x.x.x  
Subnet Mask . . . . . . . . . . . : 255.255.255.0  
Default Gateway . . . . . . . . . : x.x.x.x **(this shows as router IP, no pi-hole IP)**

Tunnel adapter Local Area Connection\* 11:

Connection-specific DNS Suffix . :  
IPv6 Address. . . . . . . . . . . : x:x:x:x:x:x:x:x  
Link-local IPv6 Address . . . . . : x:❌x:x:x  
Default Gateway . . . . . . . . . : ::

## Debug Token:

zh2udjuah4

---

<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:** [January 2, 2018, 12:44pm UTC](https://discourse.pi-hole.net/t/pi-hole-running-fine-dns-server-not-showing-pi-hole-ip-vpn-also-not-working/6308/2 "2018-01-02T12:44:22Z")

</div>

> [@piholer](#):
>
> After installing pi-hole on a pi zero v1.3, ipconfig for my desktop should show default gateway = IP address of pi zero

No. The gateway should still be the router

> [@piholer](#):
>
> however it is still showing it to be that of the router.

Pi-hole is a DNS server, not a proxy, hence your traffic should still go the usual path (computer -\> router -\> Internet).

> [@piholer](#):
>
> it is blocking ads fine.

Then this issue is already solved.

> [@piholer](#):
>
> however no adblocking happened on the phone from cellular data.

You will have to set the DNS server in the VPN config

> [@piholer](#):
>
> when i changed the config file of vpn to point to pi-zero IP, vpn didn’t work.

You have to do further settings. Please have a look at this article of our extensive Pi-hole VPN wiki:

[https://github.com/pi-hole/pi-hole/wiki/OpenVPN-server:-Dual-operation:-LAN-&-VPN-at-the-same-time](https://github.com/pi-hole/pi-hole/wiki/OpenVPN-server:-Dual-operation:-LAN-&-VPN-at-the-same-time)

After following through this it should work fine for you.

---

<div class="post-metadata">

**Author:** ![piholer](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/piholer/32/2459_2.png) [@piholer](https://discourse.pi-hole.net/u/piholer)\
**Post date:** [January 3, 2018, 3:03am UTC](https://discourse.pi-hole.net/t/pi-hole-running-fine-dns-server-not-showing-pi-hole-ip-vpn-also-not-working/6308/3 "2018-01-03T03:03:25Z")

</div>

Hello,  
Thank you very much for the response. I made one mistake in my problem statement:  
default gateway = ip of router . this is correct and ok.  
when I do ipconfig /all, even the DNS servers is showing to be IP of router and not ip zero.  
Wireless LAN adapter Wi-Fi:

Connection-specific DNS Suffix . :  
Description . . . . . . . . . . . : Realtek RTL8811AU Wireless LAN 802.11ac USB 2.0 Network Adapter  
Physical Address. . . . . . . . . :  
DHCP Enabled. . . . . . . . . . . : Yes  
Autoconfiguration Enabled . . . . : Yes  
Link-local IPv6 Address . . . . . : fe80::a487:f6e7:c92c:583f%2(Preferred)  
IPv4 Address. . . . . . . . . . . : 192.168.1.167(Preferred)  
Subnet Mask . . . . . . . . . . . : 255.255.255.0  
Lease Obtained. . . . . . . . . . : Sunday, December 31, 2017 3:25:21 PM  
Lease Expires . . . . . . . . . . : Wednesday, January 3, 2018 7:56:30 PM  
Default Gateway . . . . . . . . . : 192.168.x.x  
DHCP Server . . . . . . . . . . . : 192.168.x.x  
DHCPv6 IAID . . . . . . . . . . . : 51808273  
DHCPv6 Client DUID. . . . . . . . : xxxxxxxx  
**DNS Servers . . . . . . . . . . . : 192.168.x.x (this was same as IP of router)**  
NetBIOS over Tcpip. . . . . . . . : Enabled

I am yet to follow all steps for VPN, but i'm wondering if this will affect it. if not, then i'll disregard this for my computer.

Thanks,  
Rajat

---

<div class="post-metadata">

**Author:** ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)\
**Post date:** [January 3, 2018, 8:09pm UTC](https://discourse.pi-hole.net/t/pi-hole-running-fine-dns-server-not-showing-pi-hole-ip-vpn-also-not-working/6308/4 "2018-01-03T20:09:21Z")

</div>

> [@piholer](#):
>
> DHCP Server . . . . . . . . . . . : 192.168.x.x  
> DNS Servers . . . . . . . . . . . : 192.168.x.x (this was same as IP of router)

Who is doing DHCP in your network, Pi-hole or the router ?

---

<div class="post-metadata">

**Author:** ![piholer](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/piholer/32/2459_2.png) [@piholer](https://discourse.pi-hole.net/u/piholer)\
**Post date:** [January 3, 2018, 9:45pm UTC](https://discourse.pi-hole.net/t/pi-hole-running-fine-dns-server-not-showing-pi-hole-ip-vpn-also-not-working/6308/5 "2018-01-03T21:45:24Z")

</div>

DHCP server is also Router IP, so I guess router is doing the DHCP.  
if Pi-hole needs to do it, is there a tutorial available for that?

---

<div class="post-metadata">

**Author:** ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)\
**Post date:** [January 3, 2018, 10:01pm UTC](https://discourse.pi-hole.net/t/pi-hole-running-fine-dns-server-not-showing-pi-hole-ip-vpn-also-not-working/6308/6 "2018-01-03T22:01:09Z")

</div>

Can you post screenshots of your router "DHCP server" settings ?  
If it lacks an option to push a DNS server (Pi-hole's IP) to the clients through DHCP, I would recommend to disable the DHCP server on the router and enable the one on Pi-hole as a replacement:

> [@How do I use Pi-hole's built in DHCP server (and why would I want to)?](https://discourse.pi-hole.net/t/how-do-i-use-pi-holes-built-in-dhcp-server-and-why-would-i-want-to/3026):
>
> Using Your Existing Router For Network-wide Ad Blocking You might not need to use Pi-hole's DHCP server: In many home environments, your router also functions as your DHCP server. In this case, you can often [set Pi-hole to be the DNS server for your network clients in the router's DHCP (or LAN) settings page](https://discourse.pi-hole.net/t/how-do-i-configure-my-devices-to-use-pi-hole-as-their-dns-server/245), which allows all of your network clients to block ads simply by connecting to the network. Setting it up this way is also what makes Pi-hole very powerful for network-wide ad blocking. W…

Ps. love your handle by the way 😉

---

<div class="post-metadata">

**Author:** ![piholer](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/piholer/32/2459_2.png) [@piholer](https://discourse.pi-hole.net/u/piholer)\
**Post date:** [January 4, 2018, 4:16am UTC](https://discourse.pi-hole.net/t/pi-hole-running-fine-dns-server-not-showing-pi-hole-ip-vpn-also-not-working/6308/7 "2018-01-04T04:16:07Z")

</div>

thank you for continued assistance.  
I went to DHCP settings and added pi hole IP in the DNS server field there. the DHCP server didn't change, but pi hole appeared as additional DNS server in the query .  
do i live with this or do i follow the article shared and go to pi hole admin and select it to be the DHCP server?

thank you for comment on handle 🙂, couldn't believe it was available.

---

<div class="post-metadata">

**Author:** ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)\
**Post date:** [January 4, 2018, 4:56am UTC](https://discourse.pi-hole.net/t/pi-hole-running-fine-dns-server-not-showing-pi-hole-ip-vpn-also-not-working/6308/8 "2018-01-04T04:56:12Z")

</div>

You dont want the clients to get two DNS servers assigned as the router DNS service isn't Pi-holed and the clients will query both.  
From screenshot, this appears to be an Asus router.  
Me and this [other piholer](https://discourse.pi-hole.net/t/why-are-adverts-on-some-domains-not-blocked/5972/4) experienced we cant use our Asus router to assign DNS servers to clients via the routers DHCP because we cant get ride of the second DNS IP (the router).  
So we switched DHCP from router to Pi-hole.

---

<div class="post-metadata">

**Author:** ![piholer](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/piholer/32/2459_2.png) [@piholer](https://discourse.pi-hole.net/u/piholer)\
**Post date:** [January 5, 2018, 3:36am UTC](https://discourse.pi-hole.net/t/pi-hole-running-fine-dns-server-not-showing-pi-hole-ip-vpn-also-not-working/6308/9 "2018-01-05T03:36:18Z")

</div>

Hello,  
Thank you for the troubleshooting and advice. I change my DHCP to pi-hole, restarted router and pi-zero, and now everything is showing correctly.  
Thank you for the help.
