28
28
ipv4_bind_addresses = "127.0.0.1"
29
29
chroot_dir = "/etc/maradns"
31
csv2["example.com."] = "db.example.com"
30
recursive_acl = "127.0.0.1/8"
33
32
In the above mararc file, MaraDNS has the IP 127.0.0.1, would
34
look for zone files in the directory /etc/maradns, and reads the
35
file db.example.com to get the zone for example.com.
33
look for zone files in the directory /etc/maradns, and allows
34
recursive DNS queries on the loopback interface.
37
36
OK, so let's look at some problems, as they appear on a CentOS
38
37
3.8 box with the above mararc file.
43
42
lines, including lines that start with '#', are lines created by
44
43
the programs we are running in these examples.
46
$ askmara Awww.example.com.
45
$ askmara Awww.google.com.
47
46
# Querying the server with the IP 127.0.0.1
48
47
# Hard Error: Unable to send UDP packet!
81
80
Linux, replace this command with the appropriate command for
82
81
restarting a daemon/service for your operating system.
83
Now, lets look at some possible replies.
87
$ askmara Awww.google.com.
88
# Querying the server with the IP 127.0.0.1
89
# Remote server said: SERVER FAILURE
90
# Question: Awww.google.com.
94
This is the askmara output when MaraDNS is running correctly but
95
is unable to connect to DNS servers on the internet. This can be
96
caused when the machine running MaraDNS does not have an
97
internet connection, or when MaraDNS is being firewalled.
99
So, we get the internet connection up and going. If you have a
100
working ethernet card and are on a network with internet access,
101
this is as simple as making a DHCP request for an IP:
104
Internet Systems Consortium DHCP Client V3.0.1
105
Copyright 2004 Internet Systems Consortium.
107
For info, please visit http://www.isc.org/products/DHCP
109
/sbin/dhclient-script: configuration for eth0 not found. Continuing
111
/sbin/dhclient-script: line 52: eth0: No existe el fichero o el directorio
112
Listening on LPF/eth0/00:40:f4:17:ac:e9
113
Sending on LPF/eth0/00:40:f4:17:ac:e9
116
Sending on Socket/fallback
117
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
118
DHCPOFFER from 10.1.2.1
119
DHCPREQUEST on eth0 to 255.255.255.255 port 67
120
DHCPACK from 10.1.2.1
121
/sbin/dhclient-script: configuration for eth0 not found. Continuing
123
/sbin/dhclient-script: line 52: eth0: No existe el fichero o el directorio
124
bound to 10.1.2.3 -- renewal in 255 seconds.
126
Note that if you are using something besides CentOS or Red Hat
127
Enterprise Linux, the command for getting a DHCP lease may not
84
130
Now, the dhclient that CentOS 3.8 comes with is buggy, and
85
131
breaks lo (the loopback interface which gives CentOS the
86
132
127.0.0.1 IP address). So, we have to fix lo again: