# Also resolving queries from server where pi-hole is running on

**URL:** <https://discourse.pi-hole.net/t/also-resolving-queries-from-server-where-pi-hole-is-running-on/2122>\
**Category:** Help\
**Created:** [March 10, 2017, 6:30am UTC](https://discourse.pi-hole.net/t/also-resolving-queries-from-server-where-pi-hole-is-running-on/2122 "2017-03-10T06:30:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogierl](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rogierl/32/794_2.png) [@rogierl](https://discourse.pi-hole.net/u/rogierl)\
**Post date:** [March 10, 2017, 6:30am UTC](https://discourse.pi-hole.net/t/also-resolving-queries-from-server-where-pi-hole-is-running-on/2122/1 "2017-03-10T06:30:53Z")

</div>

I have pi-hole running on my (Ubuntu) server; debug info can be found behind this token: **916rf7xoix**. Everything is working fine, but now I have one problem: the server itself is also being "recorded" by pi-hole. This is definitely not something I want, because the admin interface gets messed up a bit, due to all the requests the server does itself.

So is it possible to "exclude" localhost (127.0.0.1) from being processed? I know I can put the server in the section `Top Clients`, but when I do this, the hostnames the server made requests for still appear in the `top domains`-section of the dashboard.

 ![](https://discourse.pi-hole.net/uploads/default/original/3X/8/1/813282350bb95213d72440c93bd55b3b01f003f4.png)

---

<div class="post-metadata">

**Author:** ![Mcat12](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/mcat12/32/20_2.png) [@Mcat12](https://discourse.pi-hole.net/u/Mcat12)\
**Post date:** [March 10, 2017, 6:34pm UTC](https://discourse.pi-hole.net/t/also-resolving-queries-from-server-where-pi-hole-is-running-on/2122/2 "2017-03-10T18:34:45Z")

</div>

Change the DNS server that the server uses in `/etc/resolv.conf`.

---

<div class="post-metadata">

**Author:** ![rogierl](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/rogierl/32/794_2.png) [@rogierl](https://discourse.pi-hole.net/u/rogierl)\
**Post date:** [March 11, 2017, 2:48pm UTC](https://discourse.pi-hole.net/t/also-resolving-queries-from-server-where-pi-hole-is-running-on/2122/3 "2017-03-11T14:48:57Z")

</div>

Well, I have added this in my /etc/network/interfaces: `dns-nameservers 192.168.1.1`. This is my router address, so **not** pi-hole. For some reason, it looks like the server is using localhost as the dns-server. Contents of `/etc/resolv.conf` are like this:

```
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1

```

So the question now is: how do I change the DNS server in use for a Ubuntu 16 LTS server?

---

<div class="post-metadata">

**Author:** ![firestorrrm](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/f/edb3f5/32.png) [@firestorrrm](https://discourse.pi-hole.net/u/firestorrrm)\
**Post date:** [March 11, 2017, 8:07pm UTC](https://discourse.pi-hole.net/t/also-resolving-queries-from-server-where-pi-hole-is-running-on/2122/4 "2017-03-11T20:07:14Z")

</div>

You can always make the appropriate edit, then lock the file. See here: [Make Raspberry Pi not use pihole for its own DNS - #9 by firestorrrm](https://discourse.pi-hole.net/t/make-raspberry-pi-not-use-pihole-for-its-own-dns/895/9)
