<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I can't claim credit for this response
      as I asked a local guru I know and here is his response regarding
      the concept of whether there's a "null" IP you can use ...<br>
      <br>
      Nope, not really ... but there are the reserved RFC1918 address
      ranges that could be used - 127/8, 10/8, 172.16/12, 192.168.0/16.<br>
      <div>What this DNSmasq thing is doing it trying to 'throw away'
        requests for the specified sites completely, but in fact all it
        is doing is to provide an answer, just not the one they wanted.
        In this case the answer was '127.0.0.1' and for the person on
        this post, they were testing *from the server* so of course they
        got the server's local HTTP service. If you tried it from a
        workstation, you'd not get the same result ... unless you had a
        web server installed on there as well. The default web servers
        listen to anything on 127/8 :-)</div>
      <div><br>
      </div>
      <div>You can return any IP you want with dnsmasq, and if you
        return an address that doesn't exist you'll trigger a long
        timeout while the web browser waits for an answer ... so it's
        best to not do this at all. If you don't use the 10/8 network,
        you'd say address=/<a href="http://ihatethissite.com/10.0.0.1">ihatethissite.com/10.0.0.1</a>
        ...</div>
      <div><br>
      </div>
      <div>I note that all of the addresses in that example are
        effectively web services, so in this case the better option
        would be to have a web proxy on the network that filtered out
        those sites. The other common alternative is to have a web
        browser do the filtering (using an addon like NoScript or
        something); and of course you also keep another web browser
        handy that doesn't have those restrictions, just in case one day
        you need those sites ...</div>
      <br>
      Cheers,<br>
      <br>
      - Bob -<br>
      <br>
      On 12/02/14 11:46, Gabriel wrote:<br>
    </div>
    <blockquote
cite="mid:CAJc7SsYsWPo+CmeZofWkeYL8QNcYy8U_ncuLXJH3atFu3FVZVA@mail.gmail.com"
      type="cite">
      <p dir="ltr">I haven't tried it, but maybe 127.0.0.2 will do the
        trick.</p>
      <div class="gmail_quote">On Feb 11, 2014 4:40 PM, "Chris Green"
        <<a moz-do-not-send="true" href="mailto:cl@isbd.net">cl@isbd.net</a>>
        wrote:<br type="attribution">
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          I have a few entries in my dnsmasq.conf file to block some
          tracking<br>
          sites, as follows:-<br>
          <br>
              address=/<a moz-do-not-send="true"
            href="http://www.addthis.com/127.0.0.1" target="_blank">www.addthis.com/127.0.0.1</a><br>
              address=/<a moz-do-not-send="true"
            href="http://googlesyndication.com/127.0.0.1"
            target="_blank">googlesyndication.com/127.0.0.1</a><br>
              address=/<a moz-do-not-send="true"
            href="http://google-analytics.com/127.0.0.1" target="_blank">google-analytics.com/127.0.0.1</a><br>
              address=/<a moz-do-not-send="true"
            href="http://googleadservices.com/127.0.0.1" target="_blank">googleadservices.com/127.0.0.1</a><br>
              address=/<a moz-do-not-send="true"
            href="http://doubleclick.net/127.0.0.1" target="_blank">doubleclick.net/127.0.0.1</a><br>
              address=/<a moz-do-not-send="true"
            href="http://finder.cox.net/127.0.0.1" target="_blank">finder.cox.net/127.0.0.1</a><br>
          <br>
          However this means that my web server gets the hits instead if
          the<br>
          requests are HTTP ones.  I.e. if I enter <a
            moz-do-not-send="true" href="http://www.addthis.com"
            target="_blank">www.addthis.com</a> into the<br>
          Firefox address it takes me to my local web server's root
          page.<br>
          <br>
          Is there any IP I can put there which will prevent this - i.e.
          which<br>
          is a sort of 'do nothing' IP?  I've tried 0.0.0.0 but that
          takes me to<br>
          the local page in exactly the same way as 127.0.0.1.<br>
          <br>
          --<br>
          Chris Green<br>
          <br>
          _______________________________________________<br>
          Dnsmasq-discuss mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
          <a moz-do-not-send="true"
            href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss"
            target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Dnsmasq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a>
<a class="moz-txt-link-freetext" href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a>
</pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <table style="border: 1px solid rgb(102, 102, 102); padding: 10px
        5px 20px; font-size: 11px; color: rgb(102, 102, 102);
        font-family: Verdana,Arial,sans-serif; width: 280px;">
        <tbody>
          <tr height="45">
            <td valign="center"><b>Turboweb Limited</b><br>
              Bob Brown <small><a
href="http://www.turboweb.co.nz/team/3/Bob-Brown-Web-Developer?ref=email">(about
                  me)</a></small><br>
              Web Developer</td>
            <td align="right" valign="center"><img alt="Turboweb"
                src="cid:part13.00060603.01070607@turboweb.co.nz"
                height="22" width="90">  </td>
          </tr>
          <tr>
            <td> Ph: +64 3 474 5953<br>
              <a class="moz-txt-link-abbreviated"
                href="http://www.turboweb.co.nz">www.turboweb.co.nz</a><br>
            </td>
            <td align="right" valign="bottom">23 Vogel St<br>
              Dunedin 9016<br>
              New Zealand</td>
          </tr>
          <tr>
            <td colspan="2"> <br>
              <strong>Note: For prompt attention for all support issues,
                please email <a href="mailto:support@turboweb.co.nz">support@turboweb.co.nz</a>.</strong>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>