Keen not to go through the joy of a total reset, I’ve never successfully got my broadband back up and running in such circumstances and usually had to revert to a back up. (though that was a couple of years ago I last tried)
I couldn’t see a package for kresd and there doesn’t seem to be a command to run it?
Unbound is the default resolver for Turris 1.x, but you seem to have an Omnia. For Omnia and MOX the default is kresd command in package knot-resolver. So far I haven’t heard of the resolver switching itself to another one by itself.
I think it was back in November 2016 when I moved away from Kresd to dnsmasq due to some issues with equipment at home only working with dnsmasq. I have a dim and distant feeling I may have excluded knot at some point due to it overwriting the dnsmasq and resolver settings but I can not be sure of that.
ln late 2017 perhaps, I moved to using pi-hole to serve dhcp & dns on lxc. It’s only since I have updated to TOS5 that DNS & DHCP have been back on the TO (mainly because I can’t get LXC working without an issue with Luci at the moment)
knot-resolver package is not installed on my TO, should it be?
I’ve just noticed if I run pkgupdate I get the following:
root@TurrisOmnia:~# pkgupdate
INFO:Target Turris OS: 5.0.2
WARN:Request not satisfied to install package: knot-resolver
WARN:Package wpad is in cyclic dependency. It might fail its post-install script .
WARN:Package hostapd is in cyclic dependency. It might fail its post-install scr ipt.
WARN:Requested package luci-i18n-rainbow-en that is missing, ignoring as request ed.
WARN:Requested package luci-i18n-sqm-en that is missing, ignoring as requested.
line not found
line not found
line not found
line not found
line not found
ERROR:
inconsistent: Requested package luci that is not available.
root@TurrisOmnia:~#
Ah, from history I can see that you were among the users with devices sensitive to “unusual” name compression in DNS. That should have been “worked around” in libknot for very long time. Therefore you might prefer to go back the default choice (kresd), as that’s really the only “officially supported” choice for Omnia.
Uh, I’m no good with pkgupdate knowledge. After you get the package somehow I think it should be enough to edit /etc/config/resolver, section config resolver 'common' to contain option prefered_resolver 'kresd'. I suppose option port '0' in /etc/config/dhcp is already present if you get Unbound running. I’m not sure what other discrepancies you might have accumulated.
Bingo!
Installed knot-resolver it showed some errors, but I decided to give it a reboot and then if nothing was working, try another install, capture the errors and post here.
After the reboot:
So from that I assumed Kresd is working, went to ad-block and changed the backend to Kresd and it no longer shows error in the status. Tried a few websites I know usualy result in ads and popups then looked at the DNS Report,
A much higher block rate than before. Blocking isn’t as good as pi-hole at the moment but that’s probably just a case of the right blocklists being enabled.
What gets blocked should be just about the lists you use, not about the SW. Though I don’t know off the top of my head if they have the same set of blocklist types.
And then it broke again… update from 5.0.1 to 5.0.2 removed knot-resolver !?!
Is this intentional or something hidden in my config from the old updater.sh approach?
Something bad remained in your configuration of updater. I expect you had to do that step before to prevent knot-resolver from getting reinstalled on updates (due to being a mandatory system dependency). Maybe in the /etc/updater/conf.d/opkg-auto.lua file, but I don’t know the updater well.
Is there a quick way to see which blocklist is blocking a DNS request?
Facebook and twitter are both being blocked at the moment, whilst I have added the corresponding requests to the whitelist using the action button (and they are present now in the whitelist) for some reason after a refresh they are still blocked?
this is what i get when i do ubus call service list ‘{“name”: “kresd”}’
:~# ubus call service list ‘{“name”: “kresd”}’
Usage: ubus [<options>] <command> [arguments...]
Options:
-s <socket>: Set the unix domain socket to connect to
-t <timeout>: Set the timeout (in seconds) for a command to complete
-S: Use simplified output (for scripts)
-v: More verbose output
-m <type>: (for monitor): include a specific message type
(can be used more than once)
-M <r|t> (for monitor): only capture received or transmitted traffic
Commands:
- list [<path>] List objects
- call <path> <method> [<message>] Call an object method
- listen [<path>...] Listen for events
- send <type> [<message>] Send an event
- wait_for <object> [<object>...] Wait for multiple objects to appear on ubus
- monitor Monitor ubus traffic
I would suggest you type the command directly in to the terminal rather than cut and paste, If I cut and paste I get the same as you, for some reason the text gets translated to remove the ’ and " and replace them with .
I haven’t found a setup error yet and I need to push for a solution. Or is it just a problem with this website and the complicated Java code in the page?