LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-28-2009, 06:42 AM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040

It will not harm the webserver.
It just runs named in foreground (not as a daemon) and every error, request etc will be logged on the screen
 
Old 04-29-2009, 04:00 AM   #17
milindras
Member
 
Registered: May 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
It will not harm the webserver.
It just runs named in foreground (not as a daemon) and every error, request etc will be logged on the screen
What kind of things I should look for on the screen? Its going very fast
Thanks
 
Old 04-29-2009, 04:08 AM   #18
milindras
Member
 
Registered: May 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by milindras View Post
What kind of things I should look for on the screen? Its going very fast
Thanks
Hi I loged something. I notice that tha same error we seen before on the screen. I have attached here with.
Thanks
Attached Files
File Type: txt message log 2.txt (17.4 KB, 51 views)
 
Old 04-29-2009, 05:02 AM   #19
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
To what error do you refer? Because everything seems normal in the attached log file.
The only strange thing is that it is like someone has stop named using "kill -2 <named-pid>". To me it looks like a problem between the OS and bind.
Search Redhat to see if they have any patches for your bind version, or try to upgrade it to see if it helps.
 
Old 04-29-2009, 05:15 AM   #20
milindras
Member
 
Registered: May 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
To what error do you refer? Because everything seems normal in the attached log file.
The only strange thing is that it is like someone has stop named using "kill -2 <named-pid>". To me it looks like a problem between the OS and bind.
Search Redhat to see if they have any patches for your bind version, or try to upgrade it to see if it helps.
29-Apr-2009 09:48:40.264 client 91.202.63.133#5717: endrequest
29-Apr-2009 09:48:40.264 client @0x94c3618: udprecv
29-Apr-2009 09:48:41.994 shutting down
29-Apr-2009 09:48:41.994 stopping command channel on 127.0.0.1#953
29-Apr-2009 09:48:41.995 res 0x94e37e8: shutdown
29-Apr-2009 09:48:41.995 res 0x94e37e8: exiting
29-Apr-2009 09:48:41.995 dns_requestmgr_shutdown: 0x94fad40
29-Apr-2009 09:48:41.995 send_shutdown_events: 0x94fad40
29-Apr-2009 09:48:41.996 res 0x95005d8: shutdown
29-Apr-2009 09:48:41.996 res 0x95005d8: exiting
29-Apr-2009 09:48:41.996 dns_requestmgr_shutdown: 0x9517b30
29-Apr-2009 09:48:41.996 send_shutdown_events: 0x9517b30
29-Apr-2009 09:48:41.996 no longer listening on 127.0.0.1#53
29-Apr-2009 09:48:41.996 clientmgr @0x94a57a8: destroy
29-Apr-2009 09:48:41.996 no longer listening on 217.199.177.181#53
29-Apr-2009 09:48:41.996 clientmgr @0x94c31f0: destroy
29-Apr-2009 09:48:41.996 no longer listening on 217.199.177.53#53
29-Apr-2009 09:48:41.996 clientmgr @0x94c8fd8: destroy
29-Apr-2009 09:48:41.997 no longer listening on 217.199.177.52#53
29-Apr-2009 09:48:41.997 clientmgr @0x94cedc0: destroy
29-Apr-2009 09:48:41.997 calling free_rbtdb(.)
29-Apr-2009 09:48:41.997 done free_rbtdb(.)
29-Apr-2009 09:48:41.997 zone_shutdown: zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: shutting down
29-Apr-2009 09:48:41.997 calling free_rbtdb(0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa)
29-Apr-2009 09:48:41.997 zone_shutdown: zone intra.ctc-development.co.uk/IN: shutting
 
Old 04-29-2009, 05:30 AM   #21
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
This is normal behavior while named shuts down. It stops rndc, then named and last unloads the zones. I've checked it against my running named.

Just to be sure that this is not due to the 2 problematic zones showing up in log files, could you please try to comment them out from where you have define them (the records are muntons.virtual-datarooms.co.uk and oilandgas.virtual-datarooms.co.uk). Btw in the attached named.con this domain does not exist.

Last edited by bathory; 04-29-2009 at 05:38 AM. Reason: used zones instead of records
 
Old 04-29-2009, 05:58 AM   #22
milindras
Member
 
Registered: May 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
This is normal behavior while named shuts down. It stops rndc, then named and last unloads the zones. I've checked it against my running named.

Just to be sure that this is not due to the 2 problematic zones showing up in log files, could you please try to comment them out from where you have define them (the records are muntons.virtual-datarooms.co.uk and oilandgas.virtual-datarooms.co.uk). Btw in the attached named.con this domain does not exist.
Most of the things Im doing on this server is using Web Min user interface.
The muntons.virtual-datarooms.co.uk virtual server site is already disabled but oilandgas.virtual-datarooms.co.uk is still live.

I can see in Web min that BING server has a cross mark which says not running! but when I try to start it says

Failed to start service : Failed to start BIND : Starting named: named: already running[FAILED]

And also all the sites are accessible.
Thanks
 
Old 04-29-2009, 06:00 AM   #23
milindras
Member
 
Registered: May 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by milindras View Post
Most of the things Im doing on this server is using Web Min user interface.
The muntons.virtual-datarooms.co.uk virtual server site is already disabled but oilandgas.virtual-datarooms.co.uk is still live.

I can see in Web min that BING server has a cross mark which says not running! but when I try to start it says

Failed to start service : Failed to start BIND : Starting named: named: already running[FAILED]

And also all the sites are accessible.
Thanks
I can try a restart the server, but if the BIND not start somehow it gonna cause problems to me.
Thanks
 
Old 04-29-2009, 06:14 AM   #24
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
I have never used such tools to administer dns, so I could be of little help on this.
Anyway when webmin says that named is running, what is the output of
Code:
ps -ef|grep named
Because according to your posts it seems that named starts and stops almost immediately, that is why the above command gives no output. If named is not running, but everything works, then it's a secondary dns that does the job.

Maybe webmin finds a named.pid file somewhere and it thinks that named is running. Also you said that one domain is disabled, but is stills gets loaded at bind startup. I don't know but it looks like webmin and bind use different config files.
 
Old 04-29-2009, 06:21 AM   #25
milindras
Member
 
Registered: May 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
I have never used such tools to administer dns, so I could be of little help on this.
Anyway when webmin says that named is running, what is the output of
Code:
ps -ef|grep named
Because according to your posts it seems that named starts and stops almost immediately, that is why the above command gives no output. If named is not running, but everything works, then it's a secondary dns that does the job.

Maybe webmin finds a named.pid file somewhere and it thinks that named is running. Also you said that one domain is disabled, but is stills gets loaded at bind startup. I don't know but it looks like webmin and bind use different config files.
Out put of that command
[root@ns sysconfig]# ps -ef|grep named
named 25171 1 0 Feb05 ? 00:02:32 /usr/sbin/named -u named
root 8958 8028 0 11:08 pts/0 00:00:00 man named
root 8961 8958 0 11:08 pts/0 00:00:00 sh -c (cd /usr/share/man && (echo ".ll 14.1i"; echo ".nr LL 14.1i"; echo ".pl 1100i"; /usr/bin/gunzip -c '/usr/share/man/man8/named.8.gz'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -c --legacy ISO-8859-1 -mandoc 2>/dev/null | /usr/bin/less -is)
root 8962 8961 0 11:08 pts/0 00:00:00 sh -c (cd /usr/share/man && (echo ".ll 14.1i"; echo ".nr LL 14.1i"; echo ".pl 1100i"; /usr/bin/gunzip -c '/usr/share/man/man8/named.8.gz'; echo ".\\\""; echo ".pl \n(nlu+10") | /usr/bin/gtbl | /usr/bin/nroff -c --legacy ISO-8859-1 -mandoc 2>/dev/null | /usr/bin/less -is)
root 10170 8028 0 12:08 pts/0 00:00:00 grep named
[root@ns sysconfig]#
 
Old 04-29-2009, 06:41 AM   #26
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
I'm baffled.
So now named is running!!!! While it's running what is the output of
Code:
netstat -tanpl|grep named
 
Old 04-29-2009, 06:55 AM   #27
milindras
Member
 
Registered: May 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post
I'm baffled.
So now named is running!!!! While it's running what is the output of
Code:
netstat -tanpl|grep named
Doesnt give any out put for that command.
 
Old 04-29-2009, 07:07 AM   #28
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,174
Blog Entries: 1

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040

Let's run the following in sequence to see what they give:
Code:
ps -ef | grep named
netstat -tanpl | grep 53
lsof | grep named
 
Old 04-29-2009, 07:08 AM   #29
milindras
Member
 
Registered: May 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Could you check the file permissions of these files are correct?

[root@ns etc]# ls -al rndc.conf
-rw------- 1 root root 475 Apr 29 11:19 rndc.conf
[root@ns etc]# ls -al named.c
named.caching-nameserver.conf named.conf
[root@ns etc]# ls -al named.conf
-rw-r--r-- 1 root named 4548 Apr 29 12:03 named.conf
[root@ns etc]#

Thanks
 
Old 04-29-2009, 07:10 AM   #30
milindras
Member
 
Registered: May 2008
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bathory View Post

Let's run the following in sequence to see what they give:
Code:
ps -ef | grep named
netstat -tanpl | grep 53
lsof | grep named
sorrt the last command is not working
 
  


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: NDC command failed : rndc: connect failed: connection refused Boudewijn Linux - Networking 19 01-02-2014 07:19 AM
rndc: connect failed: connection refused mahmoud Linux - Newbie 2 06-07-2006 02:23 AM
rndc: connect failed: connection refused jkmartha Linux - Software 0 06-20-2005 01:35 AM
rndc: connect failed: connection refused Justalk Linux - Software 2 06-28-2004 03:45 PM
rndc: connect failed: connection refused Atroxic Linux - Networking 1 10-24-2003 01:01 PM

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

All times are GMT -5. The time now is 01:29 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