35
35
ipv4_bind_addresses = "127.0.0.1"
36
36
chroot_dir = "/etc/maradns"
38
csv2["example.com."] = "db.example.com"
37
recursive_acl = "127.0.0.1/8"
43
42
In the above mararc file, MaraDNS has the IP 127.0.0.1, would look for
44
zone files in the directory <tt>/etc/maradns</tt>, and reads the file
45
db.example.com to get the zone for example.com. <p>
43
zone files in the directory <tt>/etc/maradns</tt>, and allows recursive
44
DNS queries on the loopback interface. <p>
47
46
OK, so let's look at some problems, as they appear on a CentOS 3.8
48
47
box with the above mararc file.
102
101
command with the appropriate command for restarting a daemon/service for
103
102
your operating system. <p>
104
Now, lets look at some possible replies.
106
<h2>Server failure</h2>
109
$ askmara Awww.google.com.
110
# Querying the server with the IP 127.0.0.1
111
# Remote server said: SERVER FAILURE
112
# Question: Awww.google.com.
117
This is the askmara output when MaraDNS is running correctly but is
118
unable to connect to DNS servers on the internet. This can be caused
119
when the machine running MaraDNS does not have an internet connection,
120
or when MaraDNS is being firewalled. <p>
122
So, we get the internet connection up and going. If you have a working
123
ethernet card and are on a network with internet access, this is as
124
simple as making a DHCP request for an IP:
128
Internet Systems Consortium DHCP Client V3.0.1
129
Copyright 2004 Internet Systems Consortium.
131
For info, please visit http://www.isc.org/products/DHCP
133
/sbin/dhclient-script: configuration for eth0 not found. Continuing
135
/sbin/dhclient-script: line 52: eth0: No existe el fichero o el directorio
136
Listening on LPF/eth0/00:40:f4:17:ac:e9
137
Sending on LPF/eth0/00:40:f4:17:ac:e9
140
Sending on Socket/fallback
141
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
142
DHCPOFFER from 10.1.2.1
143
DHCPREQUEST on eth0 to 255.255.255.255 port 67
144
DHCPACK from 10.1.2.1
145
/sbin/dhclient-script: configuration for eth0 not found. Continuing
147
/sbin/dhclient-script: line 52: eth0: No existe el fichero o el directorio
148
bound to 10.1.2.3 -- renewal in 255 seconds.
151
Note that if you are using something besides CentOS or Red Hat
152
Enterprise Linux, the command for getting a DHCP lease may not be
105
155
Now, the dhclient that CentOS 3.8 comes with is buggy, and breaks lo
106
156
(the loopback interface which gives CentOS the 127.0.0.1 IP address).
107
157
So, we have to fix lo again: