-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NixOS module does not resolve queries when enabled #75
Comments
hi! Yes, you can achieve similar functionality by setting your local resolver to the leng DNS address. With your example: services.leng = {
enable = true;
configuration = {
bind = "0.0.0.0:53";
api = "127.0.0.1:5300";
blocking.sourcesStore = "/var/lib/leng-sources";
};
};
networking.nameservers = [ "127.0.0.1" ] Keep in mind this might leave your machine without DNS if leng goes down, so I recommend a more HA setup were you have several machines with leng running and they are all part of the As for why it works in dnsmasq automatically, it's because it has services.dnsmasq.resolveLocalQueries, an option that is |
I tried adding the
But I get the same results as before. |
yes, this is what I meant in my message above: Sorry for the back and forth, but I would like to make sure I am understanding you properly. Are you trying to use dnsmasq and leng at the same time? If yes this would result in the behaviour you describe. As for the errors in leng file output, leng does need some other DNS resolver to be present in the system to be able to download blocklists, but this should not stop it from resolving queries. |
No worries about the back and forth. To clear things up, I am running the unstable branch of NixOS on a Raspberry Pi 4. I am currently using
When I try to ping something, such as
But if I check
I am running all of these commands on the server itself, so it's not a firewall issue. I'm not really sure what could be blocking communication to the |
I have looked at this again more in-depth. I am afraid this not supported by leng right now, because leng itself uses resolv.conf under the hood (because Go uses it for every network connection). This results in:
This can be fixed I think, by replacing every HTTP client in leng with one with a custom implementation of Go's Sorry I cannot be of more help just yet. I will leave this issue open until this use-case works! |
This adds a failing test to keep track of progress to hopefully resolve_ #75
hi @negatethis I have a new build which I believe resolves this in #83 Could you try running that version of leng? If you are using flakes, that would be the ref |
Hello, I've been trying to set up leng v1.6.1 using the
flake.nix
NixOS module. I currently usednsmasq
with the following basic configuration:I added this configuration for
leng
:When I disable
dnsmasq
and enableleng
with that configuration, no queries are resolved on my server, so I can't ping basic sites like "google.com", etc. Theleng
logs look like this: leng-logs.txt.Are there extra options I need to set somewhere to get
leng
to work as a local DNS resolver for my server?The text was updated successfully, but these errors were encountered: