1. kresd/ubuntu

Ubuntu PPA:

    ppa:cz.nic-labs/knot-dns
    ppa:cz.nic-labs/knot-resolver

run as root:

LC_ALL=C.UTF-8 add-apt-repository ppa:cz.nic-labs/knot-dns
LC_ALL=C.UTF-8 add-apt-repository ppa:cz.nic-labs/knot-resolver
apt-get update
apt-get install knot-resolver

手元のUbuntu 14.04 LTSではこうい結果に。

W: http://jp.archive.ubuntu.com/ubuntu/dists/trusty-updates/main/binary-amd64/Packages の取得に失敗しました
  ハッシュサムが適合しません

2. 16.0 LTS

# LC_ALL=C.UTF-8 add-apt-repository ppa:cz.nic-labs/knot-dns
 Knot DNS is a high-performance authoritative-only DNS server.

www.knot-dns.cz

To enable this repository, issue this command as root:

# LC_ALL=C.UTF-8 add-apt-repository ppa:cz.nic-labs/knot-dns
 More info: https://launchpad.net/~cz.nic-labs/+archive/ubuntu/knot-dns
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmpbs80p3wc/secring.gpg' created
gpg: keyring `/tmp/tmpbs80p3wc/pubring.gpg' created
gpg: requesting key F9C59A45 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpbs80p3wc/trustdb.gpg: trustdb created
gpg: key F9C59A45: public key "Launchpad Datové schránky" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

# LC_ALL=C.UTF-8 add-apt-repository ppa:cz.nic-labs/knot-resolver
 This package repository has been deprecated. To obtain the latest version of knot-resolver, please follow instructions on https://www.knot-resolver.cz/download/ to add our new upstream repository to your system.
 More info: https://launchpad.net/~cz.nic-labs/+archive/ubuntu/knot-resolver
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmp13yw2ptc/secring.gpg' created
gpg: keyring `/tmp/tmp13yw2ptc/pubring.gpg' created
gpg: requesting key F9C59A45 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmp13yw2ptc/trustdb.gpg: trustdb created
gpg: key F9C59A45: public key "Launchpad Datové schránky" imported
gpg: Total number processed: 1
gpg:               imported: 1  (RSA: 1)
OK

# sudo apt-get update
Hit:1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]    
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                   
Get:4 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [320 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [225 kB]
Get:6 http://jp.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [248 kB]
Get:7 https://download.docker.com/linux/ubuntu xenial InRelease [66.2 kB]      
Get:8 http://jp.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [339 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]     
Hit:10 http://dl.google.com/linux/chrome/deb stable Release                    
Hit:12 http://ppa.launchpad.net/cz.nic-labs/knot-dns/ubuntu xenial InRelease   
Get:13 http://security.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [67.7 kB]
Get:14 http://security.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [68.0 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [109 kB]
Hit:16 http://ppa.launchpad.net/cz.nic-labs/knot-resolver/ubuntu xenial InRelease
Get:17 http://security.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [154 kB]
Hit:18 http://ppa.launchpad.net/inkscape.dev/stable/ubuntu xenial InRelease    
Fetched 1,812 kB in 2s (632 kB/s)
Reading package lists... Done

3. apt-get install

# apt-get install knot-resolver
Reading package lists... Done
Building dependency tree       
Reading state information... Done

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 knot-resolver : Depends: libzscanner0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

4. make

ソースから作る。

3.1.0 はmakeできるのだが、実行しても、queryを受けたところでsegment fault になる。

2.4.1 は普通にmakeできて、実行も問題なさそうだ。-- ToshinoriMaeno 2018-12-17 12:44:13