TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Maza – Like Pi-hole but local and using your operating system

375 点作者 tanrax大约 5 年前

21 条评论

hnarn大约 5 年前
I&#x27;ve been using <a href="https:&#x2F;&#x2F;nextdns.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nextdns.io&#x2F;</a> for a while and I really like it. You can do DNS over HTTPS through Firefox (sadly not on an OS level in Windows for example, but that&#x27;s fine -- I&#x27;m sure OS level support works better on Linux), and it supports a lot of user-level customization. You can add and remove entire blocklists, you can black&#x2F;white-list specific domains, see logs of your blocks, some analytics, create your own redirects etc. and it doesn&#x27;t cost you a thing. The main website does a pretty good job of explaining the selling points.<p>You can use it as-is but if you want user-specific configuration you&#x27;ll get a custom URL that looks something like &quot;<a href="https:&#x2F;&#x2F;dns.nextdns.io&#x2F;c8g88a&quot;" rel="nofollow">https:&#x2F;&#x2F;dns.nextdns.io&#x2F;c8g88a&quot;</a>, and whatever comes in that way will use your settings and will be logged as per your configuration (of course, you can disable logging).
评论 #22718437 未加载
评论 #22718513 未加载
评论 #22718593 未加载
评论 #22722196 未加载
评论 #22719371 未加载
评论 #22720833 未加载
评论 #22719382 未加载
swinglock大约 5 年前
Who is this for, what&#x27;s the point?<p>If you&#x27;re using a computer on which installing this software is an alternative, you can install a web browser with an ad blocker, which performs much better than DNS based filters.<p>If you&#x27;re not using such a computer, Pi-Hole proves DNS filtering and this software doesn&#x27;t.<p>What&#x27;s the use-case between these two that isn&#x27;t already covered?
评论 #22718333 未加载
评论 #22718224 未加载
评论 #22718429 未加载
评论 #22732713 未加载
评论 #22723494 未加载
评论 #22718240 未加载
bestouff大约 5 年前
Or if you already run dsnmasq you can:<p>- uncomment this in your dnsmasq.conf:<p><pre><code> addn-hosts=&#x2F;etc&#x2F;banner_add_hosts </code></pre> - put this in a file in &#x2F;etc&#x2F;cron.daily:<p><pre><code> wget -O &#x2F;etc&#x2F;banner_add_hosts &#x27;https:&#x2F;&#x2F;pgl.yoyo.org&#x2F;adservers&#x2F;serverlist.php?showintro=0&amp;mimetype=plaintext&#x27;</code></pre>
评论 #22722160 未加载
4nof大约 5 年前
I found there is a docker container of pihole which means it can run on anything including Windows! I tried it and it works in a docker container on windows just fine! pihole docker steps: (prereq: install docker <a href="https:&#x2F;&#x2F;www.docker.com&#x2F;products&#x2F;docker-desktop" rel="nofollow">https:&#x2F;&#x2F;www.docker.com&#x2F;products&#x2F;docker-desktop</a>)<p>1.setup your docker-compose.yml file with the one listed on pihole page <a href="https:&#x2F;&#x2F;hub.docker.com&#x2F;r&#x2F;pihole&#x2F;pihole&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hub.docker.com&#x2F;r&#x2F;pihole&#x2F;pihole&#x2F;</a> (starts with version: &#x27;3&#x27;).<p>2. save and do &quot;docker-compose up -d&quot;<p>3. do &quot;docker ps&quot; and ensure your pihole is running.<p>4. Go to network settings and set your DNS to 127.0.0.1 and ::1 like this: <a href="https:&#x2F;&#x2F;mayakron.altervista.org&#x2F;wikibase&#x2F;show.php?id=AcrylicWindows10Configuration" rel="nofollow">https:&#x2F;&#x2F;mayakron.altervista.org&#x2F;wikibase&#x2F;show.php?id=Acrylic...</a><p>5. if the docker container is ever stopped, you will need to reverse the setup step 4 to get back internet.<p>Hope that helps all you windows users who want a DNS blocker pihole on your machines!
评论 #22728151 未加载
vezycash大约 5 年前
I&#x27;ve been using adguard&#x27;s dns to block ads on my phone* because pi-hole isn&#x27;t an option for me at the moment.<p>Also set it on a colleague&#x27;s phone and he&#x27;s thanked me severally for it.<p>* (dns.adguard.com<p>private DNS in network settings on android pie)
评论 #22718024 未加载
评论 #22718039 未加载
评论 #22718515 未加载
stfwn大约 5 年前
Fwiw, you can run Pi-hole locally just fine. But using the hosts file like Maza does may be a little bit faster than running a DNS-server.
xtf大约 5 年前
Network Wide &gt; Pi-hole<p>Browser &gt; Ublock<p>Local System &gt; hosts-file<p>Android (root) &gt; Adaway (does hosts-file)
评论 #22718193 未加载
评论 #22718179 未加载
tuananh大约 5 年前
the one reason i use pihole is to block ads network-wide. this kinda defeats that purpose.
评论 #22718094 未加载
fuzzy2大约 5 年前
On Windows, a large hosts file may lead to noticeably slower name resolution performance. Maybe it&#x27;s less of a problem on Linux&#x2F;macOS...?
评论 #22718127 未加载
评论 #22718124 未加载
评论 #22718260 未加载
评论 #22719762 未加载
achairapart大约 5 年前
I&#x27;m looking for a simple tool to setup and switch to DNS over HTTPS at the OS level (MacOS, in this case), with no success.<p>With it, I would simply switch to one of the many pi-holed&#x2F;filtered DOH services[0] out there, or even roll my own on a cheap VPS.<p>On iOS there is DNSCloak which is excellent, Android 9+ has built-in support (Private DNS).<p>[0]: like pi-dns.com or blahdns.com
评论 #22722872 未加载
mcovey大约 5 年前
For anyone running OpenWRT, you can install the adblock package to accomplish roughly the same thing as Pi-hole does. I don&#x27;t believe it supports some advanced features like DoH&#x2F;DoT or DNS resolution (e.g. a1b2c3.example.com -&gt; ad-server-that-should-be-blocked.com), but it does the basics - custom host file sources, additional blacklist rules, whitelisting, and quick enable&#x2F;disable for troubleshooting.<p>It also has an option to force all DNS traffic (port 53, so again it won&#x27;t catch DoH&#x2F;DoT) to go through the router. Occasionally I forget I&#x27;ve done this and tried `dig foo.bar @1.1.1.1` and gotten confused until I remember that my router is forcing that DNS lookup to go through it first, and then through the router&#x27;s configured DNS resolver.
评论 #22728369 未加载
petre大约 5 年前
I&#x27;m using this whenever I have a working server lying around. Unbound works great.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;gbxyz&#x2F;unbound-block-hosts" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gbxyz&#x2F;unbound-block-hosts</a>
dmclamb大约 5 年前
I use pihole for my entire home network as primary DNS and opendns for secondary (long time user of opendns, since before Cisco bought it). I also have VPN setup for remote access (esp. for mobile). I use ublock origin at the browser level.<p>These are layers of protection from undesired content (ads, malware, porn, etc.). If one fails, hopefully the next layer will provide desired protection.<p>I have kids approaching teen years. There is no magic bullet, and we still monitor and limit their screen time.<p>How would you improve this setup? Just curious.
评论 #22720018 未加载
p2t2p大约 5 年前
I&#x27;m using simple <a href="https:&#x2F;&#x2F;github.com&#x2F;StevenBlack&#x2F;hosts" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;StevenBlack&#x2F;hosts</a>. Puts everything into hosts file.
steveharman大约 5 年前
I wonder why the pi-hole tram doesn&#x27;t also offer a paid tier (that they host), to help those who can&#x27;t or don&#x27;t want to roll their own?<p>It could help fund future development and maintrnance costs.
评论 #22719817 未加载
StreamBright大约 5 年前
I just started to write this in Rust a few months back. Thanks for this project it is fixing most of my problems with Pi-hole.
throwaway4787大约 5 年前
Can someone explain how the use case differs from simply using a well-curated hosts file? (like Steven Black&#x27;s)
评论 #22721694 未加载
1_player大约 5 年前
Great work! One suggestion: please make blocklists configurable.
评论 #22718175 未加载
wp381640大约 5 年前
I have a docker-compose.yml locally with:<p>dnsmasq -&gt; pihole -&gt; stubby<p>The first dnsmasq is for local .test domains for dev. Works well for when i&#x27;m not on one of my networks.
评论 #22720240 未加载
lonelappde大约 5 年前
Oh, this is a wrapper for running dnsmasq. It&#x27;s lighter weight than pihole but less user firendly.<p>Not sure why the readme tries to obscure that.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;tanrax&#x2F;maza-ad-blocking&#x2F;blob&#x2F;master&#x2F;maza" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tanrax&#x2F;maza-ad-blocking&#x2F;blob&#x2F;master&#x2F;maza</a>
评论 #22720214 未加载
amelius大约 5 年前
The point of Pi-Hole is that you can&#x27;t hack it that easily compared to software installed on your local computer.
评论 #22720046 未加载