DNS
Like FreeBSD, OpenBSD has a nameserver installed by default. This allows for easy configuration of a caching nameserver. A caching nameserver is not authoritative for any domain; it simply serves as a recursive resolver for clients.
OpenBSD runs an older yet heavily audited version of BIND, the
popular nameserver from ISC. While many other operating systems are
shipping with BIND 9.x, OpenBSD 3.1 runs BIND 4.9.8. Version 4 BIND
installations use legacy configuration files and maintenance
mechanisms. For more information on BIND, see http://www.isc.org/products/BIND/. By
default, the nameserver on OpenBSD runs in a
chroot'd
jail.
Tip
chroot is a mechanism for changing what a
process considers to be the root of the file system. A
chroot'd process will, for
instance, think that /var/named is really /.
chroot'ing a process greatly
reduces the risk to the host in the event of a compromise. A properly
chroot'd jail will keep
attackers limited to the jail. They will not be able to break out to
affect the rest of the system.
To turn on OpenBSD’s caching nameserver, modify the
named_flags option to be the following:
named_flags=""
After the next reboot, the system will be running a caching
nameserver. From a client on the network you should be able to use a
utility such as nslookup to verify the process
is acting as expected.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access