LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-18-2004, 09:07 AM   #1
WiWa
Member
 
Registered: Aug 2003
Distribution: Redhat 9.0, Fedora Core, Suse 9.1, Mandrake
Posts: 82

Rep: Reputation: 15
Bind problem


Hi,

Have problem with Bind. When I do:

[root@thorgal sbin]# cd /
[root@thorgal /]# cd /sbin
[root@thorgal sbin]# service named restart
Stopping named: rndc: connect failed: connection refused [FAILED]
Starting named: [ OK ]
[root@thorgal sbin]#


When I do ps -aux, I cannot see that the named process has started. I also see in the /var/log/messages the following:


Apr 18 15:55:55 thorgal named[10068]: starting BIND 9.2.3 -u named
Apr 18 15:55:55 thorgal named[10068]: using 1 CPU
Apr 18 15:55:55 thorgal named[10068]: loading configuration from '/etc/named.conf'
Apr 18 15:55:55 thorgal named[10068]: no IPv6 interfaces found
Apr 18 15:55:55 thorgal named[10068]: listening on IPv4 interface lo, 127.0.0.1#53
Apr 18 15:55:55 thorgal named[10068]: listening on IPv4 interface eth1, 10.0.0.13#53
Apr 18 15:55:55 thorgal named[10068]: command channel listening on 127.0.0.1#953
Apr 18 15:55:55 thorgal named[10068]: couldn't open pid file 'named.pid': Permission denied
Apr 18 15:55:55 thorgal named[10068]: exiting (due to early fatal error)
Apr 18 15:55:55 thorgal named: named startup succeeded


When I do the following, I get the same result:


[root@thorgal /]# /etc/rc.d/init.d/named restart
Stopping named: rndc: connect failed: connection refused [FAILED]
Starting named: [ OK ]
[root@thorgal /]#


Any ideas what is wrong? Can I make the PID file myself. Where do I have to put it? Any suggestions? I googled already a lot...No of the returns fixes my problem.

Below are my files=>

------------------------------------/etc/named.conf-------------------------------------------------------

[root@thorgal etc]# cat named.conf
options {
directory "/var/named";
pid-file "named.pid";
forwarders {
10.0.0.2;
};

/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
query-source port 53;
//forward only;
recursion yes;
//check-names response warn;
//check-names master warn;
};

//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};


include "/etc/rndc.key";

zone "wauters-mannaert.be" {
type master;
file "/var/named/named.hosts";
};

zone "localhost" {
type master;
file "/var/named/localhost.zone";
};

zone "0.0.127.in-addr.arpa" {
type master;
file "/var/named/local.rev";
};

zone "0.0.10.in-addr.arpa" {
type master;
file "/var/named/named.rev";
};


logging {
channel logDNS {
file "/var/log/bind/logDNS.log";
severity info;
print-severity yes;
};
};



------------------------------------/etc/rncd.key------------------------------------------------------------------

[root@thorgal etc]# cat rndc.key
key rndckey {
algorithm hmac-md5;
secret "m35xbeOVUQ1akui5MJm5kpupxy2p7Lw9v3MjhqkYORa8IClXEgBTTmu3rjj0";
};
[root@thorgal etc]#


------------------------------------/etc/rncd.conf------------------------------------------------------------------

[root@thorgal etc]# cat rndc.conf
/*
* Copyright (C) 2000, 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
* INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
* FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

/* $Id: rndc.conf,v 1.7 2001/01/09 21:40:45 bwelling Exp $ */

/*
* Sample rndc configuration file.
*/

options {
default-server localhost;
default-key "rndckey";
};

server localhost {
key "rndckey";
};

include "/etc/rndc.key";
[root@thorgal etc]#
 
Old 04-18-2004, 08:29 PM   #2
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 30
Looks like user 'named' doesn't have permission to create named.pid in /var/named.
 
Old 06-03-2004, 04:48 AM   #3
agent bigote
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
yes u can. use the command touch

# touch named.pid
put it in /var/run where the other pid files are
but i think thats not ur problem try this:
go to /usr/sbin and run
./named-checkconf
this checks ur named.conf file for errors
it might be the rndc key
 
Old 06-03-2004, 09:26 AM   #4
Astro
Member
 
Registered: Jan 2003
Location: Albany, NY
Distribution: Slackware
Posts: 654

Rep: Reputation: 30
I've found if you use `service named restart` it doesnt work properly... I've always had to `killall -9 named` then `service named start`

If it's a service, it will not show up in ps aux, but if you do a netstat -anp as root it will tell you the process thats running on the specific port, bind for example and you can check to see if it's running. Bind runs on port 53 fyi
 
Old 06-03-2004, 09:53 AM   #5
james.farrow
Member
 
Registered: Mar 2003
Location: UK Darlington
Distribution: Fedora Freebsd Centos
Posts: 288

Rep: Reputation: 30
ucould try pgrep -l named I think thats right, should give you process id
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bind problem hansi umayangan Linux - Newbie 1 02-28-2005 10:42 PM
bind problem gubak Linux - Networking 13 07-22-2004 02:40 AM
problem with bind krimson Linux - Networking 3 01-22-2004 06:50 PM
problem with bind krimson Linux - Software 0 01-19-2004 05:42 PM
problem bind 9.xx Rana Saud Linux - Networking 1 07-15-2003 11:45 AM


All times are GMT -5. The time now is 01:06 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration