Donate to Wikipedia

Transform a Mac into an Open-Source Server

The Tutorial


BIND (Berkeley Internet Name Domain) is an implementation of the Domain Name System (DNS) protocols and provides an openly redistributable reference implementation of the major components of the Domain Name System. The BIND DNS Server is used on the vast majority of name serving machines on the Internet, providing a robust and stable architecture on top of which an organization’s naming architecture can be built.
- BIND Website

To install the MacPorts BIND (DNS) package, execute the following from the command line (you may have to enter a Mac OS X administrative password):

sudo port install bind9

Mac OS X 10.5 (Leopard) includes BIND version 9.4.1. The Mac OS X 10.4 (Tiger) default installation includes BIND DNS Server version 9.3.4. MacPorts will install version 9.4.2 of BIND.

Before you configure the BIND you just installed, first install and configure Webmin (see menu at left). Login to Webmin on your server once it is up, and go the BIND DNS Server under the Servers menu. Click the Module Config link, and set the following configurable options:

Full path to the named.conf file: /opt/local/etc/named.conf
Full path to the named executable: /opt/local/sbin/named
Full path to the rndc.conf file: /opt/local/etc/rndc.conf

Note that if you set the Full path to the rndc.conf file, you will probably also want to set the Setup RNDC Global Server Option in BIND as well. This will let you refresh individual zones without needing to do a full BIND restart.

A log of the BIND DNS installation can be found here.

Now you can click on the Start BIND Nameserver button in Webmin and add zone files.

Chapter 8 of the Book of Webmin is a great online guide for managing the BIND DNS Server with Webmin.