Knot DNS - DNS autoritaire haute performance
Find a file
Daniel Salzman 934339f29c Merge branch 'journal-bootstrap' into 'master'
journal: refactored boostrap changeset handling

See merge request !791
2017-08-21 19:27:51 +02:00
doc zone/journal: zone-in-journal implemented (as an option for now)... 2017-08-07 15:56:15 +02:00
libtap contrib: move open_tmp_file from zonefile 2016-11-24 10:01:13 +01:00
m4 Add support to check for ED25519 support in GnuTLS 2017-07-15 13:35:30 +02:00
python python: add platform detection to fix default library name on macOS 2017-07-24 09:23:21 +02:00
samples keymgr: removed completion 2017-05-04 16:14:15 +02:00
scripts Use LC_ALL=C, the locale should not affect the build anyway. 2017-08-04 14:51:37 +02:00
src Merge branch 'journal-bootstrap' into 'master' 2017-08-21 19:27:51 +02:00
tests journal: feature: merging into bootstrap changeset 2017-08-07 15:47:02 +02:00
tests-extra tests-extra: update keymgr output parsing 2017-08-07 10:52:35 +02:00
tests-fuzz Get src/utils/knotd/main.c correctly from $(top_srcdir) 2017-01-11 12:19:01 +01:00
.dir-locals.el added surmised C indentation rules for emacs users 2017-03-25 13:15:24 -05:00
.gitattributes Add .gitattributes export-ignore 2011-11-02 14:58:23 +01:00
.gitignore Use configure.ac to generate version number into pykeymgr script 2017-06-07 15:13:42 +02:00
.gitlab-ci.yml Use custom docker configuration for each GitLab CI job to prevent concurrent overwrites between the image building jobs 2017-08-04 14:52:00 +02:00
.ycm_extra_conf.py Merge branch 'master' into 'events-refactor' 2017-01-16 15:04:07 +01:00
AUTHORS Update AUTHORS, THANKS and remove unused KNOWN_ISSUES file 2017-06-15 10:37:10 +02:00
autogen.sh add autogen.sh 2014-12-17 14:14:56 +01:00
ChangeLog First try at autotools 2011-02-25 15:26:15 +01:00
configure.ac Link with libatomic on architectures that requires it 2017-08-03 11:48:35 +02:00
COPYING Add OpenSSL linking exception to the copyright file 2011-11-02 23:23:31 +01:00
coverity_model.c Add an empty Coverity modeling file as a base 2014-04-07 10:27:16 +02:00
Doxy.page.h Various spelling and typo fixes 2014-03-24 09:43:16 +01:00
Doxyfile Doxyfile: ignore lmdb 2016-08-02 16:27:40 +02:00
Knot.config Project files updates + doxygen fixes 2014-11-07 09:46:57 +01:00
Knot.creator Added QtCreator project files 2011-02-28 11:19:59 +01:00
Knot.files Unify use of the schem(e/a) word 2017-06-02 09:20:43 +02:00
Knot.includes keymgr: add config and confdb parameters 2016-06-27 10:56:59 +02:00
Makefile.am python: add Makefile to distribute the scripts 2016-12-29 15:52:21 +01:00
NEWS Prepare for next release 2017-07-04 09:19:34 +02:00
README doc: unify installation, update introduction, and extend migration 2017-06-19 22:21:52 +02:00
THANKS Update AUTHORS, THANKS and remove unused KNOWN_ISSUES file 2017-06-15 10:37:10 +02:00

Requirements
============

./doc/requirements.rst

Installation
============

./doc/installation.rst

1) Install prerequisites

Debian based distributions
--------------------------
Update the system:
$ sudo apt-get update
$ sudo apt-get upgrade

Install prerequisites:
$ sudo apt-get install \
  libtool autoconf make pkg-config liburcu-dev libgnutls28-dev libedit-dev

Install optional packages to override embedded libraries:
$ sudo apt-get install liblmdb-dev

Install optional packages:
$ sudo apt-get install libcap-ng-dev libsystemd-dev libidn11-dev protobuf-c-compiler libfstrm-dev

Fedora like distributions
-------------------------
Update the system:
# dnf upgrade

Install basic development tools:
# dnf install @buildsys-build

Install prerequisites:
# dnf install \
  libtool autoconf pkgconfig automake userspace-rcu-devel gnutls-devel libedit-devel

Install optional packages to override embedded libraries:
# dnf install lmdb-devel

Install optional packages:
# dnf install libcap-ng-devel systemd-devel libidn-devel protobuf-c-devel fstrm-devel

When compiling on RHEL based system, the Fedora EPEL repository has to be
enabled. Also for RHEL 6, forward compatibility package gnutls30-devel
with newer GnuTLS is required instead of gnutls-devel.

2) Install Knot DNS

Get the source code:
$ git clone git://git.nic.cz/knot-dns.git
Or extract source package to knot-dns directory

Compile Knot
$ cd knot-dns
$ autoreconf -if
$ ./configure
$ make

Install Knot DNS into system:
$ sudo make install
$ sudo ldconfig

Running
=======

./doc/operation.rst

1) Each server needs configuration file. Please see samples/knot.sample.conf,
project documentation, or man 5 knot.conf for more details.
Configuration file has to specify:
- storage for PID files, journal and timer databases etc.
- network interfaces
- served zones

E.g. use the default config file:
$ cd /etc/knot
$ mv knot.sample.conf knot.conf
Modify the config:
$ editor knot.conf

2) Prepare working directory
$ mv example.com.zone /var/lib/knot/

3) Start the server. This can be done by running the 'knotd' command.
Alternatively, your distribution should have an init script available, if you've
installed Knot using a binary package.

Start Knot in the foreground to see if it runs:
$ knotd -c myserver.conf