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

« back to all changes in this revision

Viewing changes to doc/en/text/troubleshoot.txt

  • 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:
27
27
 
28
28
 ipv4_bind_addresses = "127.0.0.1"
29
29
 chroot_dir = "/etc/maradns"
30
 
 csv2 = {}
31
 
 csv2["example.com."] = "db.example.com"
 
30
 recursive_acl = "127.0.0.1/8"
32
31
 
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.
36
35
 
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.
45
44
 
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!
49
48
 
60
59
   Password: type in your root password here
61
60
 
62
61
 $ ifconfig lo 127.0.0.1
63
 
 $ askmara Awww.example.com.
 
62
 $ askmara Awww.google.com.
64
63
 # Querying the server with the IP 127.0.0.1
65
64
 # Hard Error: Timeout
66
65
 
81
80
   Linux, replace this command with the appropriate command for
82
81
   restarting a daemon/service for your operating system.
83
82
 
 
83
   Now, lets look at some possible replies.
 
84
 
 
85
Server failure
 
86
 
 
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.
 
91
 # NS replies:
 
92
 # AR replies:
 
93
 
 
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.
 
98
 
 
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:
 
102
 
 
103
 $ dhclient
 
104
 Internet Systems Consortium DHCP Client V3.0.1
 
105
 Copyright 2004 Internet Systems Consortium.
 
106
 All rights reserved.
 
107
 For info, please visit http://www.isc.org/products/DHCP
 
108
 
 
109
 /sbin/dhclient-script: configuration for eth0 not found. Continuing
 
110
 with defaults.
 
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
 
114
 Listening on LPF/lo/
 
115
 Sending on   LPF/lo/
 
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
 
122
 with defaults.
 
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.
 
125
 
 
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
 
128
   be dhclient.
 
129
 
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: