# Pihole Only blocks ads on my Pi

**URL:** <https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952>\
**Category:** Help\
**Created:** [April 18, 2018, 2:13am UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952 "2018-04-18T02:13:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgoode517](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@kgoode517](https://discourse.pi-hole.net/u/kgoode517)\
**Post date:** [April 18, 2018, 2:13am UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/1 "2018-04-18T02:13:19Z")

</div>

## Expected Behaviour:

Pihole blocking ads on my entire network.

## Actual Behaviour:

Pihole only blocking ads on the pi itself or through vpn.

## Debug Token:

4hdria0dvj

---

<div class="post-metadata">

**Author:** ![RamSet](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ramset/32/3497_2.png) [@RamSet](https://discourse.pi-hole.net/u/RamSet)\
**Post date:** [April 18, 2018, 2:20am UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/2 "2018-04-18T02:20:51Z")

</div>

You need to specify the DNS address of your pihole as your default DNS resolver on all your clients.  
Or use pihole as dhcp server and then, it will self set as default dns on all clients.

---

<div class="post-metadata">

**Author:** ![RamSet](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ramset/32/3497_2.png) [@RamSet](https://discourse.pi-hole.net/u/RamSet)\
**Post date:** [April 18, 2018, 2:23am UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/3 "2018-04-18T02:23:39Z")

</div>

If you already did that, make sure pi-hole is set to listen to all interfaces,permit all origins not just possibly tun.

---

<div class="post-metadata">

**Author:** ![kgoode517](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@kgoode517](https://discourse.pi-hole.net/u/kgoode517)\
**Post date:** [April 18, 2018, 2:56am UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/4 "2018-04-18T02:56:33Z")

</div>

Thank you for your time. I have already done all that you have suggested. It still only blocks ads on the pi itself.

---

<div class="post-metadata">

**Author:** ![RamSet](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ramset/32/3497_2.png) [@RamSet](https://discourse.pi-hole.net/u/RamSet)\
**Post date:** [April 18, 2018, 3:27am UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/5 "2018-04-18T03:27:07Z")

</div>

Check out this post:

> [@No DNS on internal LAN but via VPN](https://discourse.pi-hole.net/t/no-dns-on-internal-lan-but-via-vpn/8654):
>
> Please follow the below template, it will help us to help you! I recently installed PiVPN besides Pi-hole (both updated yesterday). All was working good until I did a "pihole -up" today. It updated with no errors but now I can only make DNS queries on the VPN connected devices. On my local LAN pinging to an external IP is possible but no DNS queries anymore. Expected Behaviour: DNS queries should be possible via LAN and VPN. Actual Behaviour: DNS queries are only possible via VPN (see text a…

---

<div class="post-metadata">

**Author:** ![kgoode517](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@kgoode517](https://discourse.pi-hole.net/u/kgoode517)\
**Post date:** [April 19, 2018, 12:36am UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/6 "2018-04-19T00:36:54Z")

</div>

Thank you friend, I have checked out the post and tried the accpeted solution as well as all other suggested solutions in the thread to no avail.

---

<div class="post-metadata">

**Author:** ![RamSet](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/ramset/32/3497_2.png) [@RamSet](https://discourse.pi-hole.net/u/RamSet)\
**Post date:** [April 19, 2018, 12:41am UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/7 "2018-04-19T00:41:30Z")

</div>

What interface is your pihole listening to?

Can you post a typical ip configuration for one of your devices?

---

<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:** [April 20, 2018, 10:43pm UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/8 "2018-04-20T22:43:57Z")

</div>

Make a new debug token

---

<div class="post-metadata">

**Author:** ![kgoode517](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@kgoode517](https://discourse.pi-hole.net/u/kgoode517)\
**Post date:** [April 21, 2018, 11:35pm UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/9 "2018-04-21T23:35:46Z")

</div>

Sure Token is 372c7k8ux0

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [April 22, 2018, 1:53pm UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/10 "2018-04-22T13:53:32Z")

</div>

How did you

> [@How do I configure my devices to use Pi-hole as their DNS server?](https://discourse.pi-hole.net/t/how-do-i-configure-my-devices-to-use-pi-hole-as-their-dns-server/245):
>
> Three methods Generally, there are three different methods that will enable devices on your network to be protected by Pi-hole. 1. Define Pi-hole's IP address as the only DNS entry in the router Rationale Only is italicized here for a reason: Pi-hole needs to be the only DNS server because it intercepts queries and decides whether or not they should be blocked. If you have other DNS servers configured, you may be sent to the correct domain, bypassing Pi-hole completely. Because of this, we re…

---

<div class="post-metadata">

**Author:** ![kgoode517](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@kgoode517](https://discourse.pi-hole.net/u/kgoode517)\
**Post date:** [April 22, 2018, 2:13pm UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/11 "2018-04-22T14:13:44Z")

</div>

Thank you for the article and your time. I have read it several times alredy and I have my pihole ip as the only dns in my router, manually set on my devices, and piholes DHCP set. Im hoping for an interpretation of my debug token as I have tried everything I can think of.

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [April 22, 2018, 2:40pm UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/12 "2018-04-22T14:40:35Z")

</div>

> [@kgoode517](#):
>
> 372c7k8ux0

The debug log is clean and Pi-hole seems to be functioning fine.

If it's working for one device it should work for others. What happens if you

```auto
curl a-ads.com @<YOUR PI HOLES IP>

```

---

<div class="post-metadata">

**Author:** ![kgoode517](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@kgoode517](https://discourse.pi-hole.net/u/kgoode517)\
**Post date:** [April 22, 2018, 4:07pm UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/13 "2018-04-22T16:07:22Z")

</div>

It returns this

```auto
-- Pi-hole: A black hole for Internet advertisements
* (c) 2017 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL. -->
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <meta name="robots" content="noindex,nofollow"/>
  <meta http-equiv="x-dns-prefetch-control" content="off">
  <link rel="shortcut icon" href="http://pi.hole/admin/img/favicon.png" type="image/x-icon"/>
  <link rel="stylesheet" href="http://pi.hole/pihole/blockingpage.css" type="text/css"/>
  <title>● a-ads.com</title>
  <script src="http://pi.hole/admin/scripts/vendor/jquery.min.js"></script>
  <script>
    window.onload = function () {
      $("#bpBack").removeAttr("href");$("#bpWhitelist").prop("disabled", false);$("#bpWLPassword").attr("placeholder", "Password");$("#bpWLPassword").prop("disabled", false); }
  </script>
</head>
<body id="blockpage"><div id="bpWrapper">
<header>
  <h1 id="bpTitle">
    <a class="title" href="/"></a>
  </h1>
  <div class="spc"></div>

  <input id="bpAboutToggle" type="checkbox"/>
  <div id="bpAbout">
    <div class="aboutPH">
      <div class="aboutImg"/></div>
      <p>Open Source Ad Blocker
        <small>Designed for Raspberry Pi</small>
      </p>
    </div>
    <div class="aboutLink">
      <a class="linkPH" href="https://github.com/pi-hole/pi-hole/wiki/What-is-Pi-hole%3F-A-simple-explanation"></a>
          </div>
  </div>

  <div id="bpAlt">
    <label class="altBtn" for="bpAboutToggle"></label>
  </div>
</header>

<main>
  <div id="bpOutput" class="hidden"></div>
  <div id="bpBlock">
    <p class="blockMsg">a-ads.com</p>
  </div>
    <div id="bpHelpTxt"><span/></div>
  <div id="bpButtons" class="buttons">
    <a id="bpBack" onclick="javascript:history.back()" href="about:home"></a>
    <label id="bpInfo" for="bpMoreToggle"></label> </div>
  <input id="bpMoreToggle" type="checkbox">
  <div id="bpMoreInfo">
    <span id="bpFoundIn"><span>3</span>10</span>
    <pre id='bpQueryOutput'><span>[0]:</span>https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
<span>[5]:</span>https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
<span>[6]:</span>https://hosts-file.net/ad_servers.txt
</pre>

    <form id="bpWLButtons" class="buttons">
      <input id="bpWLDomain" type="text" value="a-ads.com" disabled/>
      <input id="bpWLPassword" type="password" placeholder="Javascript disabled" disabled/><button id="bpWhitelist" type="button" disabled></button>
    </form>
  </div>
</main>

<footer><span>Sunday 4:01 PM, April 22nd.</span> Pi-hole v3.3.1-0-gfbee18e (raspberrypi/2601:480:c202:9060:14a0:f878:dcd:292d)</footer>
</div>

<script>
  function add() {
    $("#bpOutput").removeClass("hidden error exception");
    $("#bpOutput").addClass("add");
    var domain = "a-ads.com";
    var pw = $("#bpWLPassword");
    if(domain.length === 0) {
      return;
    }
    $.ajax({
      url: "/admin/scripts/pi-hole/php/add.php",
      method: "post",
      data: {"domain":domain, "list":"white", "pw":pw.val()},
      success: function(response) {
        if(response.indexOf("Pi-hole blocking") !== -1) {
          setTimeout(function(){window.location.reload(1);}, 10000);
          $("#bpOutput").removeClass("add");
          $("#bpOutput").addClass("success");
        } else {
          $("#bpOutput").removeClass("add");
          $("#bpOutput").addClass("error");
          $("#bpOutput").html(""+response+"");
        }
      },
      error: function(jqXHR, exception) {
        $("#bpOutput").removeClass("add");
        $("#bpOutput").addClass("exception");
      }
    });
  }
      $(document).keypress(function(e) {
        if(e.which === 13 && $("#bpWLPassword").is(":focus")) {
            add();
        }
    });
    $("#bpWhitelist").on("click", function() {
        add();
    });
  </script>
</body></html>

    <html><head>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
        <link rel='stylesheet' href='/pihole/blockingpage.css' type='text/css'/>
    </head><body id='splashpage'><img src='/admin/img/logo.svg'/><br/>Pi-<b>hole</b>: Your black hole for Internet advertisements</b

```

---

<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:** [April 22, 2018, 8:41pm UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/14 "2018-04-22T20:41:50Z")

</div>

Did you run that command on the Pi? If so, try running it from a different device on your network (which didn't seem to get ads blocked)

---

<div class="post-metadata">

**Author:** ![kgoode517](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@kgoode517](https://discourse.pi-hole.net/u/kgoode517)\
**Post date:** [April 22, 2018, 10:02pm UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/15 "2018-04-22T22:02:49Z")

</div>

The other devices are not linux based yes that was on the pi itself. What would you suggest?

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [April 22, 2018, 11:05pm UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/16 "2018-04-22T23:05:21Z")

</div>

Yeah, ideally, we need you to run it or a similar command from a different device. What device(s) do you have available?

---

<div class="post-metadata">

**Author:** ![kgoode517](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/k/ecd19e/32.png) [@kgoode517](https://discourse.pi-hole.net/u/kgoode517)\
**Post date:** [April 22, 2018, 11:12pm UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/17 "2018-04-22T23:12:50Z")

</div>

Windows machines and mobile devices.

---

<div class="post-metadata">

**Author:** ![jacob.salmela](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jacob.salmela/32/8_2.png) [@jacob.salmela](https://discourse.pi-hole.net/u/jacob.salmela)\
**Post date:** [April 22, 2018, 11:15pm UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/18 "2018-04-22T23:15:30Z")

</div>

OK can you try

```auto
nslookup pi.hole <YOUR PI HOLES IP>

```

---

<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:** [April 22, 2018, 11:19pm UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/19 "2018-04-22T23:19:01Z")

</div>

> [@kgoode517](#):
>
> Windows machines

```
telnet <PIHOLE_IP_ADDRESS> 80
GET / HTTP/1.1
host: a-ads.com
<ENTER>

```

After entering the "host" line, you need to press ENTER twice!

---

<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:** [May 13, 2018, 11:19pm UTC](https://discourse.pi-hole.net/t/pihole-only-blocks-ads-on-my-pi/8952/20 "2018-05-13T23:19:05Z")

</div>

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