This document has been placed in the public domain by Sam Trenholme

# Compiling MaraDNS

## Requirments

MaraDNS needs a UNIX-compatible operating system, ideally one which is not proprietary, such as Linux, FreeBSD, NetBSD, OpenBSD, or Mac OS X (the underlying UNIX core is free). MaraDNS is currently being developed on a RedHat 7.2 machine.

## Downloading, compiling, and installing MaraDNS

- Obtain MaraDNS from www.maradns.org
- Extract the MaraDNS tarball:

  > `bzip2 -cd maradns-*.tar.bz2 | tar xvf -`

- Enter the directory that the above extraction generated.
- Compile MaraDNS. Type in `make` in the top-level MaraDNS directory.
- Install the MaraDNS package. As root:

  > `make install`

  This will install both the binaries and the man pages for 'maradns', 'askmara', 'getzone', and 'zoneserver'. In addition, this will (if the files are not already present), install an example /etc/mararc, make the /etc/maradns directory, and place an example zone file (db.example.com) in /etc/maradns. Finally, this will place MaraDNS documentation in /usr/local/doc.