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
unbound module: forward-zone generated incorrectly #127386
Comments
I have something like this in my unbound configuration, so it's weird it's not working for you:
I'm running Unbound 1.13.1, which is the latest version on 21.05. |
Hmm, I used your nixos fork so I have the exact same version. Here's my unbound.conf with forward-zone. unbound-checkconf/unbound report a syntax error on line 21, on local-zone. This error doesn't seem to depend at all on which line is after forward-zone. It always reports the line after even if I have something else between it and local-zone
When I remove the forward-zone directive from nixpkgs i get:
which is accepted by unbound Although I notice 1.1.1.1 is different from your entries, I see the same syntax error if replaced with 1.1.1.1@853#cloudflare-dns.com as you have it |
Do you mind sharing your |
Ah, whoops that would have been a smart thing to share immediately 😄 I've stripped out instead of commented some items which I ended up removing for debugging purposes. E.g. local-data is actually used for a pi-hole-esque blocklist
|
Right, I got it. |
Ah interesting. That's some wonky parsing behavior unbound's got then that it accepts them sometimes in other places |
Closing this then. |
Describe the bug
When generating a forward-zone, the new unbound module in 21.05 doesn't seem to generate valid syntax when using the example format:
The docs give the example to use:
But doing this, with say
forward-addr = [ "1.1.1.1" ];
results in this block for the forward-zone:
which results in a syntax error from unbound apparently due to the missed indentation
A valid format would look like:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The example code will produce a valid forward-zone block
Additional context
This build uses the fork from https://github.com/NixOS/nixpkgs/pull/124799/files because otherwise I couldn't even get to this point
Notify maintainers
@rissson
Metadata
"x86_64-linux"
Linux 5.4.104, NixOS, 21.11pre-git (Porcupine)
yes
yes
nix-env (Nix) 2.3.11
"nixos-21.05.906.cedcf2565c6"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: