BIND

BIND, or the Berkeley Internet Name Daemon, is Article description::a popular free software DNS server, and also one of the most frequently used name servers on the Internet.

With BIND, users are able to set up a name server for managing their own DNS records, for caching DNS, or acting as a slave DNS server. The software supports DNSSEC which provides cryptographic signatures on the DNS records as a means to natively authenticate the integrity and ownership of the records.

Installation
BIND is offered through the package. As with most packages, it is good practice to check the USE flags before emerging. Since BIND is a popular name server software, it is also a popular target for hackers and malicious groups. Is wise to securely configure BIND, which includes building in support for only features that will be actually used. If a feature will not be used, reduce the surface area of security vulnerabilities by disabling it.

Bind-tools
USE flags for bind-tools:

Install:

OpenRC
To have automatically start BIND at system boot:

To start the service now:

Most management of BIND is done through its command, although the  (OpenRC) init script can be passed the following arguments, in addition the typical start/stop/restart routines:


 * : Validates the configuration file for correct syntax.
 * : Validates the zone files for correct syntax.
 * : Reloads the zone files without restarting the named daemon itself.

For example:

Chroots
System that will be using BIND in a chrooted environment should set the CHROOT variable in accordingly. Check the comments as well, as they provide information on automatically creating the chrooted environment using.

Easy caching DNS
As root edit add an internet service provider's DNS where the x.x.x.x are.

External resources

 * http://tldp.org/LDP/lame/LAME/linux-admin-made-easy/domain-name-server.html - The Linux Documenation Projects guide for BIND (a bit antiquated), but perhaps helpful reference maternal.
 * https://wiki.archlinux.org/index.php/BIND - BIND in the Arch wiki