1
Sorry, can not find lcol; this is in the utf8 directory
2
off of the main maradns tree
1
This guide is for experienced UNIX/Linux/BSD users who just want to quickly
4
MaraDNS acts as both a recursive and an authoritative DNS server. In
5
other words, MaraDNS can both be used to speed up the internet, and/or
6
serve domains that you may have.
8
To try out MaraDNS as a recursive nameserver is easy:
10
* Compile MaraDNS. Type in './configure; make' in the top-level MaraDNS
11
directory. Note: No need to compile if you downloaded a binary RPM
14
* Take the file server/maradns and place it in /usr/local/sbin
16
* Take the file tools/duende and place it in /usr/local/sbin
18
* Create an empty directory called /etc/maradns
20
* Create a mararc file. This file only needs to be three lines long on
21
systems with a /dev/urandom file, and four lines long on older
22
operating systems without /dev/urandom
24
Here is a sample mararc file:
26
ipv4_bind_addresses = "127.0.0.1"
27
chroot_dir = "/etc/maradns"
28
recursive_acl = "127.0.0.1"
30
This mararc file says that MaraDNS will have the ip "127.0.0.1" (this
31
is the bind_address), run from the directory /etc/maradns (the
32
chroot_dir value), and only allow the ip "127.0.0.1" to make recursive
33
queries (the recursive_acl value).
35
* Place the mararc file in the location /etc/mararc on your system.
37
* Run MaraDNS as a non-daemon:
39
/usr/local/sbin/maradns
41
Since MaraDNS needs to bind to a privileged port (port 53), it needs
42
to start up running as root. MaraDNS is designed with security in
43
mind, and will drop root privileges before being visible to the
46
* Test MaraDNS in another window or virtual terminal
48
dig @127.0.0.1 www.yahoo.com
50
* In order to make the duende daemonizing tool usable, create a
51
directory named /etc/maradns/logger/
53
mkdir /etc/maradns/logger
55
* If this works, make MaraDNS run as a daemon:
57
/usr/local/sbin/duende /usr/local/sbin/maradns
59
duende is a tool that daemonizes maradns; the daemonizer is a
62
* If this all works, install MaraDNS:
65
It is also possible to set up MaraDNS as both an authoritative and
66
recursive name server with the same IP:
68
* Here is the MaraRC file:
70
ipv4_bind_addresses = "127.0.0.1"
71
chroot_dir = "/etc/maradns"
72
recursive_acl = "127.0.0.1"
74
csv2["example.com."] = "db.example.com"
76
* Have a zone file named db.example.com in the chroot_dir (/etc/maradns
77
above) that looks like this:
81
(Yes, experienced DNS admins, you can have SOA, NS, MX, SRV, and any
82
other kind of DNS data stored in a csv2 zone file. Read the csv2 man
85
* Recursive queries will be resolved normally
87
* Queries for example.com will resolve to 10.1.2.3
89
* Any other name.example.com query will return a "this host does not
92
Look in doc (in particular, the tutorial), or read the relevant man
93
pages for more information on how to set up MaraDNS.