File: multiple-instance.rst

package info (click to toggle)
dnsdist 2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,640 kB
  • sloc: cpp: 91,323; javascript: 24,456; sh: 4,744; python: 1,328; makefile: 832; ansic: 816
file content (18 lines) | stat: -rw-r--r-- 763 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Running multiple instances
==========================

Sometimes, it can be advantageous to run multiple instances of :program:`dnsdist`.
Usecases can be:

 * Multiple inbound IP addresses with different rulesets
 * Taking advantage of more processes, using SO_REUSEPORT

:program:`dnsdist` supports loading a different configuration file with the ``--config`` command line switch.

By default, ``SYSCONFDIR/dnsdist.conf`` is loaded. ``SYSCONFDIR`` is usually ``/etc`` or ``/etc/dnsdist``.

Using systemd
-------------

On systems with systemd, instance services can be used.
To create a dnsdist service named ``foo``, create a ``dnsdist-foo.conf`` in ``SYSCONFDIR``, then run ``systemctl enable dnsdist@foo.service`` and ``systemctl start dnsdist@foo.service``.