~ubuntu-branches/ubuntu/quantal/maradns/quantal

« back to all changes in this revision

Viewing changes to doc/en/source/troubleshoot.ej

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2012-01-12 23:35:38 UTC
  • mto: This revision was merged to the branch mainline in revision 26.
  • Revision ID: package-import@ubuntu.com-20120112233538-5jkaqrh9nbqtf1ey
Tags: upstream-2.0.04+really1.4.09
ImportĀ upstreamĀ versionĀ 2.0.04+really1.4.09

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
<pre>
35
35
ipv4_bind_addresses = "127.0.0.1"
36
36
chroot_dir = "/etc/maradns"
37
 
csv2 = {}
38
 
csv2["example.com."] = "db.example.com"
 
37
recursive_acl = "127.0.0.1/8"
39
38
</pre>
40
39
 
41
40
</ul>
42
41
 
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>
46
45
 
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.
57
56
<p>
58
57
 
59
58
<pre>
60
 
$ askmara Awww.example.com.
 
59
$ askmara Awww.google.com.
61
60
# Querying the server with the IP 127.0.0.1
62
61
# Hard Error: Unable to send UDP packet!
63
62
</pre>
78
77
$ su<br>
79
78
Password: </tt><i>type in your root password here</i><pre>
80
79
$ ifconfig lo 127.0.0.1
81
 
$ askmara Awww.example.com.
 
80
$ askmara Awww.google.com.
82
81
# Querying the server with the IP 127.0.0.1
83
82
# Hard Error: Timeout
84
83
</pre>
102
101
command with the appropriate command for restarting a daemon/service for
103
102
your operating system. <p>
104
103
 
 
104
Now, lets look at some possible replies.
 
105
 
 
106
<h2>Server failure</h2>
 
107
 
 
108
<pre>
 
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.
 
113
# NS replies:
 
114
# AR replies:
 
115
</pre>
 
116
 
 
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>
 
121
 
 
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:
 
125
 
 
126
<pre>
 
127
$ dhclient
 
128
Internet Systems Consortium DHCP Client V3.0.1
 
129
Copyright 2004 Internet Systems Consortium.
 
130
All rights reserved.
 
131
For info, please visit http://www.isc.org/products/DHCP
 
132
 
 
133
/sbin/dhclient-script: configuration for eth0 not found. Continuing
 
134
with defaults.
 
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
 
138
Listening on LPF/lo/
 
139
Sending on   LPF/lo/
 
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
 
146
with defaults.
 
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.
 
149
</pre>
 
150
 
 
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
 
153
dhclient.  <p>
 
154
 
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: