cannot start bind9
When I restart bind9 in my ubuntu 9.04 using command /etc/init.d/bind9 restart
it has shows the following output
* Stopping domain name service... bind9 [ OK ]
rndc: connect failed: 127.0.0.1#953: connection refused
* Starting domain name service... bind9 [fail]
how can I start bind9 .what is the actual problem here ?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu bind9 Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Cristi Nistor
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Take a look at the /var/log/syslog file to see if any references regarding the BIND server after you try to restart the service. It may be a misconfiguration of this service. And get back to tell as the relevant messages.
Good luck.
Revision history for this message
|
#2 |
hai,
Following are my /var/log/syslog contents
Nov 18 18:05:20 aneesh named[4378]: starting BIND 9.5.1-P2 -u bind
Nov 18 18:05:20 aneesh named[4378]: found 1 CPU, using 1 worker thread
Nov 18 18:05:20 aneesh named[4378]: using up to 4096 sockets
Nov 18 18:05:20 aneesh named[4378]: loading configuration from
'/etc/bind/
Nov 18 18:05:20 aneesh named[4378]: /etc/bind/
'forwarders'
Nov 18 18:05:20 aneesh named[4378]: /etc/bind/
quoted string near '“'
Nov 18 18:05:20 aneesh named[4378]: loading configuration: unexpected token
Nov 18 18:05:20 aneesh named[4378]: exiting (due to fatal error)
Nov 18 18:05:44 aneesh named[4431]: starting BIND 9.5.1-P2 -u bind
Nov 18 18:05:44 aneesh named[4431]: found 1 CPU, using 1 worker thread
Nov 18 18:05:44 aneesh named[4431]: using up to 4096 sockets
Nov 18 18:05:44 aneesh named[4431]: loading configuration from
'/etc/bind/
Nov 18 18:05:44 aneesh named[4431]: /etc/bind/
'forwarders'
Nov 18 18:05:44 aneesh named[4431]: /etc/bind/
quoted string near '“'
Nov 18 18:05:44 aneesh named[4431]: loading configuration: unexpected token
Nov 18 18:05:44 aneesh named[4431]: exiting (due to fatal error)
with regards
On Wed, Nov 18, 2009 at 5:21 PM, Cristi Nistor <
<email address hidden>> wrote:
> Your question #90687 on gnome-terminal in ubuntu changed:
> https:/
>
> Status: Open => Answered
>
> Cristi Nistor proposed the following answer:
> Take a look at the /var/log/syslog file to see if any references
> regarding the BIND server after you try to restart the service. It may
> be a misconfiguration of this service. And get back to tell as the
> relevant messages.
>
> Good luck.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https:/
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https:/
>
> You received this question notification because you are a direct
> subscriber of the question.
>
--
------with regards,
Revision history for this message
|
#3 |
forwarders should be IN the options sections in your /etc/bind/
options {
directory "/var/cache/bind";
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
forwarders {
XXX.XXX.XXX.XXX
};
};
Also you have a syntax error in your /etc/bind/
Good luck.
Revision history for this message
|
#4 |
hello cristi Nistor,
As per your instruction i had changed my /etc/bind/
file. But till the same problem exist.My current
/etc/bind/
configuration are given below .please help me to overcome this problem
options {
directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
/
// Do any local configuration here
//
# This is the zone definition. replace example.com with your domain name
zone “aneesh.com” {
type master;
file “/etc/bind/
};
#This is the zone definition for reverse DNS. replace 0.168.192 with your
network address in reverse notation – e.g #my network address is .0.10.10
zone “0.10.10.
type master;
file “/etc/bind/
};
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/
On Wed, Nov 18, 2009 at 6:30 PM, Cristi Nistor <
<email address hidden>> wrote:
> Your question #90687 on gnome-terminal in ubuntu changed:
> https:/
>
> Status: Open => Answered
>
> Cristi Nistor proposed the following answer:
> forwarders should be IN the options sections in your
> /etc/bind/
>
> options {
> directory "/var/cache/bind";
>
> auth-nxdomain no; # conform to RFC1035
> listen-on-v6 { any; };
>
> forwarders {
> XXX.XXX.XXX.XXX
> };
> };
> Also you have a syntax error in your /etc/bind/
> you copied/pasted the code make sure the " char is typed by you; and look
> maybe you omitted some ; char in your syntax.
>
> Good luck.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https:/
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https:/
>
> You received this question notification because you are a direct
> subscriber of the question.
>
--
------with regards,
Revision history for this message
|
#5 |
/
// Do any local configuration here
//
# This is the zone definition. replace example.com with your domain name
zone “aneesh.com” {
type master;
file “/etc/bind/
};
#This is the zone definition for reverse DNS. replace 0.168.192 with your
network address in reverse notation – e.g #my network address is .0.10.10
zone “0.10.10.
type master;
file “/etc/bind/
};
Here is the problem. If you copied pasted make double forward slash in the previous line for //Do any local .... If you take a look at your post above, you'll see some strange " chars starting from zone “aneesh.com” . Delete the " chars and add them by yourself for each statement as I told you before. It seems that they aren't ASCII chars as they should be.
Also take a look at named.conf file and not named.conf.options, because from there was registered the error in /var/log/syslog
Nov 18 18:05:20 aneesh named[4378]: /etc/bind/
Update the files and get back to tell us if it's ok
Revision history for this message
|
#6 |
Hai cristi Nistor
Thanks alot. now its ok
On Thu, Nov 19, 2009 at 9:49 PM, Cristi Nistor <
<email address hidden>> wrote:
> Your question #90687 on bind9 in ubuntu changed:
> https:/
>
> Status: Open => Answered
>
> Cristi Nistor proposed the following answer:
> /
> // Do any local configuration here
> //
> # This is the zone definition. replace example.com with your domain name
> zone “aneesh.com” {
> type master;
> file “/etc/bind/
> };
>
> #This is the zone definition for reverse DNS. replace 0.168.192 with your
> network address in reverse notation – e.g #my network address is .0.10.10
> zone “0.10.10.
> type master;
> file “/etc/bind/
> };
>
> Here is the problem. If you copied pasted make double forward slash in
> the previous line for //Do any local .... If you take a look at your
> post above, you'll see some strange " chars starting from zone
> “aneesh.com” . Delete the " chars and add them by yourself for each
> statement as I told you before. It seems that they aren't ASCII chars as
> they should be.
>
> Also take a look at named.conf file and not named.conf.options, because
> from there was registered the error in /var/log/syslog
>
> Nov 18 18:05:20 aneesh named[4378]: /etc/bind/
> option 'forwarders'
>
> Update the files and get back to tell us if it's ok
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https:/
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https:/
>
> You received this question notification because you are a direct
> subscriber of the question.
>
--
------with regards,
Revision history for this message
|
#7 |
Please mark the question as solved and chose the answer which helped you.
Regards,
Cristian Nistor
Revision history for this message
|
#8 |
Thanks Cristi Nistor, that solved my question.