Converting to MaraDNS

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

# Converting from another DNS server to MaraDNS

The procedure for converting from another DNS server to MaraDNS is as follows:

- Make sure that the names of all zones that the other DNS server has are in one's mararc file.
- Configure the other DNS server to allow the IP of the machine which will run MaraDNS to perform zone transfers.
- Use the `getzone` client to transfer the zones over.

Assuming that one needs to transfer the zones for example.com, maradns.org, and heaven.af.mil over, the procedure would be as follows:

- Add the following lines to one's mararc file:

  >     csv1["example.com."] = "db.example.com"
  >     csv1["maradns.org."] = "db.maradns.org"
  >     csv1["heaven.af.mil."] = "db.heaven.af.mil"

- By reading the documentation for the DNS server that one is currently running, set up the DNS server to allow zone transfers for exmaple.com, maradns.org, and heaven.af.mil
- Run getzone three times. Assuming that the IP of the server running the current version of the DNS server one is currently running is at the IP 127.0.0.1:

  >     cd /etc/maradns
  >     getzone example.com 127.0.0.1 > db.example.com
  >     getzone maradns.org 127.0.0.1 > db.maradns.org
  >     getzone heaven.af.mil 127.0.0.1 > db.heaven.af.mil