LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-12-2009, 12:59 PM   #1
Predatorian
Member
 
Registered: Mar 2008
Location: currently, where ever the army takes me
Distribution: Debian Lenny/Ubuntu or Arch Linux
Posts: 145

Rep: Reputation: 28
BIND9 startup error, just installed on ubuntu 9.04


howdy LQ'ers,

i just recently installed BIND9 on ubuntu 9.04 server, and i got this error when it tried to start up:

Code:
sudo /etc/init.d/bind9 restart
* Stopping domain name service… bind9		[ok]
rndc: connect failed: 127.0.0.1#953: connection refused

*Starting domain name service… bind9
usage: named [-4|-6] [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cups]
	     [-p port] [-s] [-t chrootdir] [-u username]
	     [-m {usage|trace|record|size|mctx}]
named: extra command line arguments
						[fail]

i figure its something to do with named, but i dont know what to look for, or where i should start. thanks for any pointers.
 
Old 11-12-2009, 01:20 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

What's in /etc/default/bind9?
 
Old 11-12-2009, 02:17 PM   #3
Predatorian
Member
 
Registered: Mar 2008
Location: currently, where ever the army takes me
Distribution: Debian Lenny/Ubuntu or Arch Linux
Posts: 145

Original Poster
Rep: Reputation: 28
Code:
#run resolveconf?
RESOLVCONF=yes

#startup options for the server
OPTIONS="-u bind t /var/lib/named"
 
Old 11-12-2009, 02:19 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
It should be "-t":
Code:
OPTIONS="-u bind -t /var/lib/named"
 
Old 11-13-2009, 12:27 AM   #5
Predatorian
Member
 
Registered: Mar 2008
Location: currently, where ever the army takes me
Distribution: Debian Lenny/Ubuntu or Arch Linux
Posts: 145

Original Poster
Rep: Reputation: 28
adding the "-" did work, but now i have a new error,

Code:
named[3072]:	starting BIND 9.5.1-P2 -u bind -t /var/lib/named
named[3072]:	found 1 CPU, using 1 worker thread
named[3072]:	using up to 4096 sockets
named[3072]:	loading configuration from '/etc/bind/named.conf'
named[3072]:	none:0: open: /etc/bind/named.conf: permission denied
named[3072]:	loading configuration: permission denied
named[3072]:	exiting (due to fatal error)
[ 157.631203] type=1503 audit(1258092689.564:11): operation=inode_permission" requested_mask"r::" denied_mask"r::" fsuid=111 name="/var/lib/named/etc/bind/named.conf" pid=3073 profile="/usr/sbin/named"
im guessing this means that some file that the BIND9 program needs to access isnt either made, or it doesnt have the propper permission, like its not owned by it or something. thanks again for your help

EDIT:
is there any books or PDF's on DNS, and how it really works and how to set it up in a generic linux install? just wondering

Last edited by Predatorian; 11-13-2009 at 12:30 AM. Reason: forgot to ask this question too
 
Old 11-13-2009, 12:39 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
This is an apparmor problem. Take a look at post #5 here to see how you fix it.
Regarding bind documentation, there is plenty, just google for it. You can start by reading this howto for bind on Ubuntu.

Regards

Last edited by bathory; 11-20-2009 at 04:16 PM.
 
Old 11-13-2009, 01:43 AM   #7
Predatorian
Member
 
Registered: Mar 2008
Location: currently, where ever the army takes me
Distribution: Debian Lenny/Ubuntu or Arch Linux
Posts: 145

Original Poster
Rep: Reputation: 28
Thank you, that was the fix to my problem, it works now. i just need to set up my local domains.
 
  


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
Ubuntu server stuck after startup! *Restarting OpenBSD error noob_J Linux - Server 0 09-06-2009 10:44 AM
Can't get bind9 configuration ok on Ubuntu 8.04 havan Linux - Networking 2 11-30-2008 02:08 PM
UBUNTU bind9 problem xokaido Linux - Server 17 07-28-2008 02:31 AM
dns configuration using Bind9 and ubuntu aljohn123 Ubuntu 0 11-13-2006 10:47 PM
just installed Ubuntu 5.10 and it freeze with the message: GRUB.... error 15 keiwu Ubuntu 12 05-31-2006 02:01 PM

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

All times are GMT -5. The time now is 04:45 PM.

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