Pihole Only blocks ads on my Pi

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

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.

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

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

Check out this post:

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.

What interface is your pihole listening to?

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

Make a new debug token

Sure Token is 372c7k8ux0

How did you

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.

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

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

It returns this

-- 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

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)

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

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

Windows machines and mobile devices.

OK can you try

nslookup pi.hole <YOUR PI HOLES IP>
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!

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