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

Need Info for logging #1

Open
krissura opened this issue Nov 29, 2021 · 3 comments
Open

Need Info for logging #1

krissura opened this issue Nov 29, 2021 · 3 comments

Comments

@krissura
Copy link

Hi,

we are trying to modify named.config.options file, just wanted to know where do we find the logs i.e where are logs being saved,

Thanks,
Suraj

@lucamemini
Copy link
Contributor

lucamemini commented Nov 29, 2021

Hello Krissura,
dnstap logging data are controlled with this directive (named.conf.options):

	/* where to capture to: file or unix (socket) */
	//dnstap-output file "/etc/bind/named.tap";
	dnstap-output unix "/etc/bind/dnstap.sock";

But for read the content (file o socketunix) your need a dnstap reader:

https://github.com/LDO-CERT/dnstap_reader

Ciao!
l.

ps: in case of dnstap-output unix the socketfile are created by reader not by bind.

@hvina
Copy link

hvina commented Nov 29, 2021

This is what we are trying to do
The default option works
We are trying to modify the named.config.options
Building the docker file and starting it seems to give an error . I am trying to find the log file to trace the error . There is no log file in /var/log/syslog or something like that

 I try docker logs command and it shows the log files. 

  Where are  the bind / named log files present on the docker container ?

@lucamemini
Copy link
Contributor

docker logs bind_sinkhole show bind log (bind was runned in foreground), inside the docker not any log are saved...
Alternative idea is to install syslog/rsyslog inside the docker and send log to remote syslog server.

https://nxlog.co/documentation/nxlog-user-guide/bind.html

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

3 participants