MaraDNS acts as an authoritative DNS server. Recursion is handled by the included "Deadwood" program.
To try out Deadwood as a recursive nameserver:
Here is a sample dwood3rc file:
ipv4_bind_addresses = "127.0.0.1" chroot_dir = "/etc/maradns" recursive_acl = "127.0.0.1"This dwood3rc file says that MaraDNS will have the ip "127.0.0.1" (this is the bind_address), run from the directory /etc/maradns (the chroot_dir value), and only allow the ip "127.0.0.1" to make recursive queries (the recursive_acl value).
Since Deadwood needs to bind to a privileged port (port 53), it needs to start up running as root. Deadwood is designed with security in mind, and will drop root privileges before being visible to the public internet./usr/local/sbin/Deadwood
dig @127.0.0.1 www.yahoo.com
mkdir /etc/maradns/logger
duende is a tool that daemonizes maradns; the daemonizer is a separate program./usr/local/sbin/duende /usr/local/sbin/Deadwood
make install
It is also possible to set up the program "maradns" as an authoritative name server:
ipv4_bind_addresses = "127.0.0.1" chroot_dir = "/etc/maradns" csv2 = {} csv2["example.com."] = "db.example.com"
example.com. 10.1.2.3(Yes, experienced DNS admins, you can have SOA, NS, MX, SRV, and any other kind of DNS data stored in a csv2 zone file. Read the csv2 man page for details)