Difference between revisions of "Djbdns"

From ArchWiki
Jump to: navigation, search
(update Pkg/AUR templates (https://github.com/lahwaacz/wiki-scripts/blob/master/update-package-templates.py))
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Daemons and system services]]
+
[[Category:Domain Name System]]
This article outlines how to install [http://cr.yp.to/djbdns.html djbdns] (tinydns) on Arch Linux.
+
This article outlines how to install [http://cr.yp.to/djbdns.html djbdns] (dnscache and tinydns) on Arch Linux.
  
 
== Installation ==
 
== Installation ==
Currently the djbdns suite of tools are only available via AUR, but they are perfectly functional and up to date. The following three items are required to install and run djbdns on Arch Linux:
 
  
* [https://aur.archlinux.org/packages.php?ID=16966 daemontools]
+
Currently the {{AUR|djbdns}}{{Broken package link|{{aur-mirror|djbdns}}}} suite of tools are only available via [[Arch User Repository]], but they are perfectly functional and up to date.
* [https://aur.archlinux.org/packages.php?ID=8330 ucspi-tcp]
+
* [https://aur.archlinux.org/packages.php?ID=23517 djbdns - patched for use with ipv6 transport. Does not (yet) contain major security fixes. ]
+
* [https://aur.archlinux.org/packages.php?ID=47326 djbdns-ipv4 - includes all available security fixes and more, but without the ipv6 transport patch. ]
+
  
When choosing which version of the djbdns package to use, you have to determine if you need ipv6 transport support. The ipv4-only version does not contain the ipv6 patch because it would be a nightmare to combine the huge ipv6 patch with the other applied patches. Also, the ipv4-only version also install the command line tools included with the djbdns tarball, which the ipv6 version does not, but that could be easily fixed by modifying the PKGBUILD file.
+
dnscache and tinydns processes are managed by {{AUR|daemontools}}, which is installed as dependency. Enable and start [[systemd]] daemontools service, {{ic|svscan}}.
  
After installation, the package will display some final instructions on how to get your dnscache or tinydns installation running.
+
Configure and run dnscache:
 +
dnscache-conf dnscache dnslog /etc/dnscache [myip]
 +
ln -s /etc/dnscache /service
  
  >>> Configure and run dnscache:
+
Configure and run tinydns:
      dnscache-conf dnscache dnslog /etc/dnscache [myip]
+
tinydns-conf tinydns dnslog /etc/tinydns myip
      ln -s /etc/dnscache /service
+
ln -s /etc/tinydns /service
 
+
 
  >>> Configure and run tinydns:
+
'''Note''': Change {{ic|myip}} to your public ip. If {{ic|[myip]}} is omitted dnscache will run on localhost.
      tinydns-conf tinydns dnslog /etc/tinydns [myip]
+
      ln -s /etc/tinydns /service
+
 
+
  Note: Change myip to your public ip. If [myip] omitted dnscache will run on localhost.
+
        More help can be found at http://cr.yp.to/djbdns.html
+

Latest revision as of 11:54, 25 December 2015

This article outlines how to install djbdns (dnscache and tinydns) on Arch Linux.

Installation

Currently the djbdnsAUR[broken link: archived in aur-mirror] suite of tools are only available via Arch User Repository, but they are perfectly functional and up to date.

dnscache and tinydns processes are managed by daemontoolsAUR, which is installed as dependency. Enable and start systemd daemontools service, svscan.

Configure and run dnscache:

dnscache-conf dnscache dnslog /etc/dnscache [myip]
ln -s /etc/dnscache /service

Configure and run tinydns:

tinydns-conf tinydns dnslog /etc/tinydns myip
ln -s /etc/tinydns /service

Note: Change myip to your public ip. If [myip] is omitted dnscache will run on localhost.