LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-07-2008, 09:47 PM   #1
and12345
LQ Newbie
 
Registered: Nov 2008
Posts: 9

Rep: Reputation: 0
bind9 won't restart


need some help guys.....

when i try to sudo /etc/init.d/bind9 restart

* Stopping domain name service... bind
rndc: connect failed: 127.0.0.1#953: connection refused
[fail]
* Starting domain name service... bind [fail]


vim /var/log/syslog reveal

Nov 8 10:21:31 myhomeUbuntuServer named[9554]: starting BIND 9.4.2-P2 -u bind
Nov 8 10:21:31 myhomeUbuntuServer named[9554]: found 1 CPU, using 1 worker thread
Nov 8 10:21:31 myhomeUbuntuServer named[9554]: loading configuration from '/etc/bind/named.conf'
Nov 8 10:21:31 myhomeUbuntuServer named[9554]: /etc/bind/named.conf.local:12: expected quoted string near '“'
Nov 8 10:21:31 myhomeUbuntuServer named[9554]: loading configuration: unexpected token
Nov 8 10:21:31 myhomeUbuntuServer named[9554]: exiting (due to fatal error)
 
Old 11-07-2008, 10:24 PM   #2
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Rep: Reputation: 32
Try killall -KILL bind9

I had a problem with it too! Although there are others much better suited to helping you then me but if you using Debian then try this post:

http://www.linuxquestions.org/questi...oblems-671393/

It's quite long but all the procedures to help you through are there

Hope this helps!
 
Old 11-10-2008, 01:27 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Quote:
Nov 8 10:21:31 myhomeUbuntuServer named[9554]: /etc/bind/named.conf.local:12: expected quoted string near '“'
You messed up your named.conf.local file, at or before line #12. Check the syntax.

How in the world is that not clear already???
 
Old 11-11-2008, 12:31 AM   #4
and12345
LQ Newbie
 
Registered: Nov 2008
Posts: 9

Original Poster
Rep: Reputation: 0
i dont know what's wrong with my named.conf.local file but this is what's written in it


# This is the zone definition. replace example.com with your domain name

zone “myhome” {
type master;
file “/etc/bind/zones/myhome.db”;
};

# 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 192.168.0

zone “0.0.10.in-addr.arpa” {
type master;
file “/etc/bind/zones/rev.0.0.10.in-addr.arpa”;
};
 
Old 12-17-2008, 08:50 PM   #5
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Rep: Reputation: 32
Sorry this post is coming so late I don't know if you've figured it out already but here's the delio:

Quote:
zone “myhome” {
type master;
file “/etc/bind/zones/myhome.db”;
};

# 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 192.168.0

zone “0.0.10.in-addr.arpa” {
type master;
file “/etc/bind/zones/rev.0.0.10.in-addr.arpa”;
};
Now your quotation marks are not in ASCII plain text format (thanks MR C. for this on my post!!)

If you cut/copied your syntax from a website chances are they would've been using a different font. Go into a text editor like gedit or nano and put the " in again. If that doesn't work delete some of the code around the line and re-enter it in that editor.

Hope this helps!
 
Old 12-17-2008, 10:45 PM   #6
WW125599
LQ Newbie
 
Registered: Sep 2008
Posts: 12

Rep: Reputation: 0
I thing there is some syntax mistake..
in the zone declaration area.
So pls check the detailed error.

#service named configtest

And as per that do the necessary changes in the named.conf file.

Good luck
 
Old 04-24-2021, 01:26 PM   #7
minhoang
LQ Newbie
 
Registered: Jun 2007
Posts: 4

Rep: Reputation: 0
Thumbs up Change 10.0.2.0 to your network address

Replace

zone “10.0.2.in-addr.arpa” {
type master;
file "/etc/bind/db.10";
};

by

zone “10.18.245.in-addr.arpa” {
type master;
file "/etc/bind/db.10";
};


my net work is 10.18.245.0/24, so i changed 10.0.2.in-addr.arpa to 10.18.245.in-addr.arpa
and it work perfectly!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND9 help twlilinux Linux - Server 9 06-19-2008 03:14 PM
Bind9.3 MX Help Fredstar Linux - Networking 1 04-15-2007 10:57 PM
How do I set the regulatory daemon to restart when I restart the network service? zahadumy Linux - Networking 0 11-05-2006 11:24 AM
Bind9 help!! Fredstar Linux - Newbie 10 08-30-2005 09:47 PM
Bind9 tandre Linux - Software 1 04-08-2003 09:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration