1
1
<!-- Do *not* edit this file; it was automatically generated by ej2html
2
2
Look for a name.ej file with the same name as this filename -->
3
<!-- Last updated Mon Sep 27 15:36:25 2010 -->
3
<!-- Last updated Fri Jan 8 10:07:49 2010 -->
40
40
ipv4_bind_addresses = "127.0.0.1"
41
41
chroot_dir = "/etc/maradns"
43
csv2["example.com."] = "db.example.com"
42
recursive_acl = "127.0.0.1/8"
48
47
In the above mararc file, MaraDNS has the IP 127.0.0.1, would look for
49
zone files in the directory <tt>/etc/maradns</tt>, and reads the file
50
db.example.com to get the zone for example.com. <p>
48
zone files in the directory <tt>/etc/maradns</tt>, and allows recursive
49
DNS queries on the loopback interface. <p>
52
51
OK, so let's look at some problems, as they appear on a CentOS 3.8
53
52
box with the above mararc file.
107
106
command with the appropriate command for restarting a daemon/service for
108
107
your operating system. <p>
109
Now, lets look at some possible replies.
111
<h2>Server failure</h2>
114
$ askmara Awww.google.com.
115
# Querying the server with the IP 127.0.0.1
116
# Remote server said: SERVER FAILURE
117
# Question: Awww.google.com.
122
This is the askmara output when MaraDNS is running correctly but is
123
unable to connect to DNS servers on the internet. This can be caused
124
when the machine running MaraDNS does not have an internet connection,
125
or when MaraDNS is being firewalled. <p>
127
So, we get the internet connection up and going. If you have a working
128
ethernet card and are on a network with internet access, this is as
129
simple as making a DHCP request for an IP:
133
Internet Systems Consortium DHCP Client V3.0.1
134
Copyright 2004 Internet Systems Consortium.
136
For info, please visit http://www.isc.org/products/DHCP
138
/sbin/dhclient-script: configuration for eth0 not found. Continuing
140
/sbin/dhclient-script: line 52: eth0: No existe el fichero o el directorio
141
Listening on LPF/eth0/00:40:f4:17:ac:e9
142
Sending on LPF/eth0/00:40:f4:17:ac:e9
145
Sending on Socket/fallback
146
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
147
DHCPOFFER from 10.1.2.1
148
DHCPREQUEST on eth0 to 255.255.255.255 port 67
149
DHCPACK from 10.1.2.1
150
/sbin/dhclient-script: configuration for eth0 not found. Continuing
152
/sbin/dhclient-script: line 52: eth0: No existe el fichero o el directorio
153
bound to 10.1.2.3 -- renewal in 255 seconds.
156
Note that if you are using something besides CentOS or Red Hat
157
Enterprise Linux, the command for getting a DHCP lease may not be
110
160
Now, the dhclient that CentOS 3.8 comes with is buggy, and breaks lo
111
161
(the loopback interface which gives CentOS the 127.0.0.1 IP address).
112
162
So, we have to fix lo again: