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

multiple instances of DNSDist always logs the process name as DNSDist #10651

Closed
ClaudioRifo opened this issue Aug 17, 2021 · 5 comments · Fixed by #10795
Closed

multiple instances of DNSDist always logs the process name as DNSDist #10651

ClaudioRifo opened this issue Aug 17, 2021 · 5 comments · Fixed by #10795

Comments

@ClaudioRifo
Copy link
Contributor

  • Program: dnsdist
  • Issue type: Bug report

Short description

when running multiple instances of DNSDist it always logs the process name as DNSDist (it does not use the dnsdist@foo or dnsdist-foo like PowerDNS does)

Environment

  • Operating system: ubuntu 18.04
  • Software version: DNSDist 1.6.0-alpha1
  • Software source: PowerDNS repository

Steps to reproduce

  1. create multiple instances like stated on the documentation:
    https://dnsdist.org/advanced/multiple-instance.html
  2. check syslog for services start/stop, you will see only dnsdist as process name

Expected behaviour

I would expect the same behavior as PowerDNS. See process names x instance (like pdns_server-instance1).

Actual behaviour

you will see only dnsdist as process name

@klaus-nicat
Copy link
Contributor

I patched /lib/systemd/system/dnsdist@.service with:

 RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
 LimitNOFILE=16384
 TasksMax=8192
+SyslogIdentifier=dnsdist_%i

 [Install]
 WantedBy=multi-user.target

@klaus-nicat
Copy link
Contributor

Maybe it would be better to use dash instead of underscore. Dash is also used for PowerDNS.

@Habbie
Copy link
Member

Habbie commented Aug 18, 2021

I patched /lib/systemd/system/dnsdist@.service with:

Looks like we already have that for auth, but not for rec. I'll tag both rec and dnsdist on this ticket so we can check.

@Habbie
Copy link
Member

Habbie commented Sep 10, 2021

Note: do not patch files in /lib. Put overrides in /etc instead, so your modifications do not break on upgrades.

@ClaudioRifo
Copy link
Contributor Author

ClaudioRifo commented Oct 5, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants