Skip to content
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

NSD zone verifier logging prefix #240

Closed
wtoorop opened this issue Nov 25, 2022 · 9 comments
Closed

NSD zone verifier logging prefix #240

wtoorop opened this issue Nov 25, 2022 · 9 comments

Comments

@wtoorop
Copy link
Member

wtoorop commented Nov 25, 2022

The NSD zone verifier logs all output via syslog, but there is little or no indication what log output comes from NSD itself and the validator. Can some sort of prefix be added?

(requested by @jschlyter )

@jschlyter
Copy link

I guess this will be implemented at https://github.com/NLnetLabs/nsd/blob/master/verify.c#L122 ?

@wtoorop
Copy link
Member Author

wtoorop commented Nov 25, 2022

I guess this will be implemented at https://github.com/NLnetLabs/nsd/blob/master/verify.c#L122 ?

Indeed! What are you thinking, a configurable prefix?

@jschlyter
Copy link

I guess this will be implemented at https://github.com/NLnetLabs/nsd/blob/master/verify.c#L122 ?

Indeed! What are you thinking, a configurable prefix?

Just verify-stdout: or similar is good. other verifier ops are logged as verify: it seems.

@johanix
Copy link

johanix commented Nov 26, 2022

Including the zone name could be useful. Obviously someone that writes their own verifier can easily do that in the verifier. But the usefulness of the prefix is

  • When using standard tools for verification
  • For the case where the verifier crashes and you'd like to know zone triggered the crash.

Johan

@jschlyter
Copy link

@wtoorop do you want a PR?

@wtoorop
Copy link
Member Author

wtoorop commented Dec 7, 2022

@wtoorop do you want a PR?

I think something configurable would fit all situations best. Maybe with some string processing similar as with the zonefile option (i.e. %s is replaced with the zone name etc.)
If you want to give that a shot, then a PR will be appreciated yes. Otherwise I'll just do it when there is a free moment...

k0ekk0ek added a commit to k0ekk0ek/nsd that referenced this issue Apr 3, 2023
@k0ekk0ek
Copy link
Contributor

k0ekk0ek commented Apr 3, 2023

Thought I'd tackle this one while I was at it. Chose to prefix messages with verifier: , which fits the other messages nicely (IMHO)

@jschlyter
Copy link

You want the prefix for all lines, both first and continuation, I assume.

k0ekk0ek added a commit to k0ekk0ek/nsd that referenced this issue Apr 5, 2023
@k0ekk0ek
Copy link
Contributor

k0ekk0ek commented Apr 5, 2023

@jschlyter, indeed 😅. Oversight on my part.

k0ekk0ek added a commit to k0ekk0ek/nsd that referenced this issue May 30, 2023
k0ekk0ek added a commit to k0ekk0ek/nsd that referenced this issue May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants