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

« back to all changes in this revision

Viewing changes to doc/en/tutorial/troubleshoot.html

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2012-01-12 23:35:38 UTC
  • mfrom: (1.1.18)
  • Revision ID: package-import@ubuntu.com-20120112233538-wwr0rm4fhnk4w39j
Tags: 2.0.04+really1.4.09-1
Revert to 1.4 series with "really" version number. The 2.0 series packages
are not yet ready to be used.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 -->
4
4
 
5
5
<HTML><HEAD>
6
6
 
39
39
<pre>
40
40
ipv4_bind_addresses = "127.0.0.1"
41
41
chroot_dir = "/etc/maradns"
42
 
csv2 = {}
43
 
csv2["example.com."] = "db.example.com"
 
42
recursive_acl = "127.0.0.1/8"
44
43
</pre>
45
44
 
46
45
</ul>
47
46
 
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>
51
50
 
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.
62
61
<p>
63
62
 
64
63
<pre>
65
 
$ askmara Awww.example.com.
 
64
$ askmara Awww.google.com.
66
65
# Querying the server with the IP 127.0.0.1
67
66
# Hard Error: Unable to send UDP packet!
68
67
</pre>
83
82
$ su<br>
84
83
Password: </tt><i>type in your root password here</i><pre>
85
84
$ ifconfig lo 127.0.0.1
86
 
$ askmara Awww.example.com.
 
85
$ askmara Awww.google.com.
87
86
# Querying the server with the IP 127.0.0.1
88
87
# Hard Error: Timeout
89
88
</pre>
107
106
command with the appropriate command for restarting a daemon/service for
108
107
your operating system. <p>
109
108
 
 
109
Now, lets look at some possible replies.
 
110
 
 
111
<h2>Server failure</h2>
 
112
 
 
113
<pre>
 
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.
 
118
# NS replies:
 
119
# AR replies:
 
120
</pre>
 
121
 
 
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>
 
126
 
 
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:
 
130
 
 
131
<pre>
 
132
$ dhclient
 
133
Internet Systems Consortium DHCP Client V3.0.1
 
134
Copyright 2004 Internet Systems Consortium.
 
135
All rights reserved.
 
136
For info, please visit http://www.isc.org/products/DHCP
 
137
 
 
138
/sbin/dhclient-script: configuration for eth0 not found. Continuing
 
139
with defaults.
 
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
 
143
Listening on LPF/lo/
 
144
Sending on   LPF/lo/
 
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
 
151
with defaults.
 
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.
 
154
</pre>
 
155
 
 
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
 
158
dhclient.  <p>
 
159
 
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: