BSD Ports

dns/kadnode 2.4.3 FreeBSD

P2P name resolution daemon

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
10660eabba
License
MIT
Categories
dns
Package size
61.4 KiB, 132.0 KiB installed

Description

KadNode finds the IP address of other instances on the Internet or local network. It is used like DNS, but is based on the decentralized BitTorrent network.

KadNode intercepts .p2p domain queries on the systems level and resolves them using a decentralized Kademlia DHT network. Additionally, TLS authentication can be used to make sure the correct IP address was found. If successful, the IP address is passed to the application making the request.

Features:

* Support for two kinds of domains: ** public key domains as <public-key>.p2p *** No need to exchange any further keys/certificates *** Uses secp256r1 ECC key pairs ** named domains like yourdomain.com.p2p *** Needs pre-shared certificates (self-signed root certificates or e.g. Let's Encrypt) *** Uses TLS session handshake for authentication * IPv4/IPv6 support * UPnP/NAT-PMP support * Local peer discovery * Small size / ~100KB depending on features / ~50KB compressed * Command line control program * NSS support through /etc/nsswitch.conf * DNS server interface and DNS proxy ** Handles A (IPv4 address),AAAA (IPv6), and SRV requests * Packages for ArchLinux, Debian, FreeBSD, MacOSX, OpenWrt, Windows * Peer file import/export on startup/shutdown and every 24h * Uses sha256 hash method

Install

Binary package:

pkg install kadnode

From the ports tree:

cd /usr/ports/dns/kadnode/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	kadnode>0:dns/kadnode

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.4.32.4.32.3.0_12.4.1_12.4.3
FreeBSD:14:quarterly2.4.32.4.3n/a2.4.1_12.4.3
FreeBSD:15:latest2.4.32.4.3n/a2.4.1_12.4.1_1
FreeBSD:15:quarterly2.4.32.4.3n/an/an/a
FreeBSD:16:latest2.4.32.4.3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 4
Run dependencies 1

No port depends on this one.

Configuration

Options name: dns_kadnode

OptionDefaultDescription
AUTHonAuthorization support based on mbedtls
CMDonCommand line control tool kadnode-ctl
DEBUGoffBuild with debug messages and symbols
DNSoffInclude local DNS interface
LPDonLocal peer discovery
NATPMPoffNAT-PMP support (remote port forwarding on the router)
NSSonName Service Switch support to intercept host queries
UPNPoffUPnP support (remote port forwarding on the router)
USES
cpe gmake
Service scripts
kadnode

Message after installing

In order to resolve domains using kadnode all over the system, add this
line to your /etc/nsswitch.conf:

hosts: files kadnode dns

If the hosts line already exists, just add kadnode before the dns entry.

Files

Manual pages 1
  • kadnode(1)
pkg-plist 6
  • bin/kadnode
  • bin/kadnode-ctl
  • @sample etc/kadnode/kadnode.conf.sample
  • @sample etc/kadnode/peers.txt.sample
  • lib/nss_kadnode.so.1
  • share/man/man1/kadnode.1.gz
distinfo 1
FileSizeSHA256
mwarning-KadNode-v2.4.3_GH0.tar.gz4668162ccffb19dd9030a946be3c02c994a6ff033b2fac6455ddec1bb39bd73856e223

Commit history 2

DateCommitCreditsLog message
10660eabba Bernhard Froehlich dns/kadnode: Fix CPE vendor information
7791ce1a15 Moritz Warning dns/kadnode: Update 2.4.1 => 2.4.3
While here, convert pkg-message to UCL format. Changelog: https://github.com/mwarning/KadNode/blob/v2.4.3/changelog PR: 298111 Reported by: Moritz Warning <[email protected]> (maintainer) Approved by: osa, vvd (Mentors, implicit)