LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   rndc: connect failed: 127.0.0.1#953: connection refused (https://www.linuxquestions.org/questions/linux-server-73/rndc-connect-failed-127-0-0-1-953-connection-refused-721963/)

bathory 04-28-2009 06:42 AM

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

milindras 04-29-2009 04:00 AM

Quote:

Originally Posted by bathory (Post 3523431)
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

milindras 04-29-2009 04:08 AM

1 Attachment(s)
Quote:

Originally Posted by milindras (Post 3524443)
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

bathory 04-29-2009 05:02 AM

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.

milindras 04-29-2009 05:15 AM

Quote:

Originally Posted by bathory (Post 3524492)
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

bathory 04-29-2009 05:30 AM

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.

milindras 04-29-2009 05:58 AM

Quote:

Originally Posted by bathory (Post 3524512)
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

milindras 04-29-2009 06:00 AM

Quote:

Originally Posted by milindras (Post 3524537)
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

bathory 04-29-2009 06:14 AM

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.

milindras 04-29-2009 06:21 AM

Quote:

Originally Posted by bathory (Post 3524548)
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]#

bathory 04-29-2009 06:41 AM

I'm baffled.
So now named is running!!!! While it's running what is the output of
Code:

netstat -tanpl|grep named

milindras 04-29-2009 06:55 AM

Quote:

Originally Posted by bathory (Post 3524561)
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.

bathory 04-29-2009 07:07 AM

:confused:
Let's run the following in sequence to see what they give:
Code:

ps -ef | grep named
netstat -tanpl | grep 53
lsof | grep named


milindras 04-29-2009 07:08 AM

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

milindras 04-29-2009 07:10 AM

Quote:

Originally Posted by bathory (Post 3524590)
:confused:
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


All times are GMT -5. The time now is 10:15 AM.