Git Product home page Git Product logo

Comments (7)

tweedge avatar tweedge commented on May 30, 2024 1

I don't think anyone would use this directly as their hosts file - the only case I would expect is if someone used hBlock or similar, which would also apply its own parsing+transformation. However, considering:

  • Changing to 0.0.0.0 has a slight file size reduction advantage, and
  • On the off chance someone does simply do something like curl a bunch of files into /etc/hosts (hopefully not, but I've seen too many manmade technohorrors to say "it'd never happen") it would be a marginally better experience.

Change implemented: ca761c2

from emerging-threats-pihole.

sml156 avatar sml156 commented on May 30, 2024

Pihole no longer needs 127.0.0.1 or 0.0.0.0 it ignores them

The post you quoted was from a lifetime ago (2017)

from emerging-threats-pihole.

tweedge avatar tweedge commented on May 30, 2024

I took a look and I believe that sml156 is correct here. It looks to me like PiHole ingests domain blocklists with either the 0.0.0.0 or 127.0.0.1 prefix, but when a domain is blocked PiHole will check what its blocking mode is set to and implement that block. The default these days is NULL blocking, which should mean that any blocked host (no matter what format the blocklist used) should return 0.0.0.0.

Reference: https://docs.pi-hole.net/ftldns/blockingmode/

I don't believe PiHole allows the lists themselves to override what blocking mode it uses - that seems like it would lead to a lot of inconsistencies. Give it a try though and let me know if there's something I can do to adjust! Would definitely prefer to adhere to best practices if there's an issue using 127.0.0.1 creates.

from emerging-threats-pihole.

sml156 avatar sml156 commented on May 30, 2024

There are several lists that work with pihole and do not add either of those IP's.

Take this list for example https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV.txt it works perfectly.
I believe some lists continue to add 127.0.0.0 and 0.0.0.0 so that people can use them in their OS's hosts file, I guess the rest don't know they do not need them.

from emerging-threats-pihole.

thomasmerz avatar thomasmerz commented on May 30, 2024

I know, but 0.0.0.0 should be preferred over 127.0.0.1 - for other reasons as you told (OS's hosts file for example) 😉

from emerging-threats-pihole.

sml156 avatar sml156 commented on May 30, 2024

I don't understand your comment, Pihole ignores both of those IP's you could put 27.27.27.27 and still have the same outcome ... pihole ignores it your point is pointless.

Sorry if this sounds mean and uncaring but them is the fact's, As far as the hosts file goes if your running windows 10 or above you cannot have 100's of thousands domains in your hosts file it will break your network.

Even win 7 had a hard time with a large hosts file unless you disabled "dns client" service, One of the reasons I am using pihole is because Windows 10 was slower than molasses no matter what service I disabled.

from emerging-threats-pihole.

thomasmerz avatar thomasmerz commented on May 30, 2024

Thank you @tweedge 👍🏼

from emerging-threats-pihole.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.