项目作者: CZ-NIC

项目描述 :
A mirrored repository
高级语言: C
项目地址: git://github.com/CZ-NIC/knot.git
创建时间: 2015-03-31T12:01:28Z
项目社区:https://github.com/CZ-NIC/knot

开源协议:GNU General Public License v3.0

下载


Coverity Status
Fuzzing Status

Requirements

doc/requirements.rst

Installation

doc/installation.rst

1. Install prerequisites

Debian based distributions

Update the system:

  1. sudo apt-get update
  2. sudo apt-get upgrade

Install prerequisites:

  1. sudo apt-get install \
  2. libtool autoconf automake make pkg-config liburcu-dev libgnutls28-dev libedit-dev liblmdb-dev

Install optional packages:

  1. sudo apt-get install \
  2. libcap-ng-dev libsystemd-dev libidn2-dev libprotobuf-c-dev protobuf-c-compiler libfstrm-dev libmaxminddb-dev libnghttp2-dev libbpf-dev libxdp-dev libmnl-dev python3-sphinx python3-sphinx-panels softhsm2

Fedora like distributions

Update the system:

  1. dnf upgrade

Install basic development tools:

  1. dnf install @buildsys-build

Install prerequisites:

  1. dnf install \
  2. libtool autoconf automake pkgconfig userspace-rcu-devel gnutls-devel libedit-devel lmdb-devel

Install optional packages:

  1. dnf install \
  2. libcap-ng-devel systemd-devel libidn2-devel protobuf-c-devel fstrm-devel libmaxminddb-devel libnghttp2-devel libbpf-devel libxdp-devel libmnl-devel python-sphinx python-sphinx-panels softhsm

When compiling on RHEL based system, the Fedora EPEL repository has to be
enabled.

2. Install Knot DNS

Get the source code:

  1. git clone https://gitlab.nic.cz/knot/knot-dns.git

Or extract source package to knot-dns directory.

Compile the source code:

  1. cd knot-dns
  2. autoreconf -if
  3. ./configure
  4. make

Install Knot DNS into system:

  1. sudo make install
  2. sudo ldconfig

Running

1. Ensure some configuration

doc/configuration.rst

Please see samples/knot.sample.conf,
project documentation,
or man 5 knot.conf for more details. Basically the configuration should specify:

  • network interfaces
  • served zones

E.g. use the default configuration file:

  1. cd /etc/knot
  2. mv knot.sample.conf knot.conf

Modify the configuration file:

  1. editor knot.conf

2. Prepare working directory

  1. mv example.com.zone /var/lib/knot/

3. Start the server

doc/operation.rst

This can be done by running the knotd command. Alternatively, your distribution
should have an init script available, if you installed Knot DNS from a binary package.

Start the server in foreground to see if it runs:

  1. knotd -c /etc/knot/knot.conf