Open rusty-snake opened 4 years ago
@rusty-snake Those are new options (--nolog, --quiet, --verbose ...) you're proposing, correct? Until those are available we could control logging via regular systemd options in fdns.service. Something like the below perhaps?
LOGGING NOTES: [IMPORTANT] only enable one of the below options
Those are new options (--nolog, --quiet, --verbose ...) you're proposing, correct?
Yes
Uncommenting line 20 works. https://github.com/netblue30/fdns/blob/59eebdcd05fbdca0dae4d0ec8d2ccab953785696/etc/fdns.service#L20
OK, let's see if I got it right:
@netblue30 that only proposals. The main issue is that since 3a54e19 all github.com, encrypted
messages are in the journal.
After 3a54e19f288662adaf16a4887f2955a51c1be9a5 all resolved hostnames are logged in the journal. This has two drawback:
We should stop this by default.
Solution
--verbose
is specified. Normal fdns output woud be the following. (Alll expectgithub.com, encrypted
and so on)--quite
/--silent
fdns has his normal output unless this option is give, then it output nothing.--nolog
fdns has full output by default, but with this option it drops the output of queries.