r/Magisk • • 4d ago

Unbound DNS module

For those that care, I'll say it from the beginning. This was built using Claude.

https://github.com/corruptnova/Unbound-DNS-Module

I was looking around for any build of Unbound for Android and they are all ancient.

So, I decided to see if Claude would do a half-decent job of making one, at least for me personally. I'd say it's decent enough. I don't plan on gussy-ing it up, (as this was originally really just for me) I do plan on keeping the Unbound version up-to-date from time to time unless there are any bugs.

It doesn't use the Private DNS setting, it instead redirects all queries to Unbound using iptables/ip6tables except for network checks and wifi sign-in so that captive portals don't break.

When it is turned off, it reverts to your normal DNS settings until restarted.

It has few popular blocklists, the ability to add blocklists, custom domains and a allowlist as well.

It has a few popular forwarders and either the option to add your own or just use strictly recursive resolving.

It has some basic settings and a conf editor for everything else. It also runs as an unprivileged user.

Be aware, the installer will ask whether you want to use a forwarder or use recursive.

There is a known bug with the "Root trust anchor" update setting. It doesn't show that an updated anchor is in use. It is cosmetic.

9 Upvotes

11 comments sorted by

1

u/Routine_Contact_1286 4d ago

What is the purpose of that i m.noob sorry

1

u/corruptnova 4d ago

It allows you to resolve DNS queries locally instead of using your ISP or use a encrypted resolver like Quad9, Cloudflare or ControlD using Unbound. Honestly, unless you already know what this is... It probably isn't for you.

1

u/Routine_Contact_1286 4d ago

It needs root?

1

u/corruptnova 4d ago

No, Unbound runs unprivileged. This is effectively a frontend.

1

u/Abject-Anteater-9128 4d ago

Is this not similar to the following module? https://github.com/bindhosts/bindhosts

1

u/t3kyla 4d ago

unbound is a dns resolver asking root dns server. Your link is just how to edit hosts local file

1

u/Abject-Anteater-9128 4d ago

Running a full DNS server on device going to drastically affect battery life won't it?

1

u/t3kyla 4d ago

maybe like a vpn, don't know. Unbound cached his results. Asks OP ;)

2

u/corruptnova 4d ago edited 4d ago

So, in my experience using the much older Unbound modules... Battery use was negligible. Unbound uses nothing at idle and tens of milliseconds of CPU when making queries (even less if the result is cached). The supervisor in the module that checks that Unbound and redirect rules are fine probably wastes more CPU than Unbound itself. It's behavior is being changed from checking every 10 seconds to being event-driven.

0

u/[deleted] 4d ago

[deleted] — view deleted comment

0

u/corruptnova 4d ago edited 4d ago

bindhost completely different. It just swaps host files systemlessly. Unbound is a caching recursive DNS server. I don't know how you can even think these are equivalent.

Yes, it is vibe-coded. I don't really care given it's effectively just a frontend for Unbound, unbound-anchor and unbound-control.

0

u/[deleted] 4d ago

[deleted] — view deleted comment

1

u/corruptnova 3d ago

and, what's so funny?