LinuxQuestions.org
Review your favorite Linux distribution.
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 10-23-2007, 05:30 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,426

Rep: Reputation: 53
Problem on starting BIND9


Hi folks,


Ubuntu 7.04 server amd64 (Host OS)
bind9
VMWare.


On running;
$ sudo /etc/init.d/bind9 start
Code:
 * Starting domain name service... bind                                                                                           [fail]
$ ps aux|grep -i named
Code:
bind      4477  0.0  0.1  70728  3608 ?        Ssl  02:05   0:00 /usr/sbin/named -u bind
root      5488  0.0  0.0  10084   776 ?        Ss   02:48   0:00 /sbin/syslogd -a /var/lib/named/dev/log
satimis   5601  0.0  0.0   5028   888 pts/0    S+   03:09   0:00 grep -i named
Please advise where shall I check and how to fix the problem. TIA


B.R.
satimis
 
Old 10-23-2007, 05:37 AM   #2
coolpal
LQ Newbie
 
Registered: Aug 2005
Posts: 14

Rep: Reputation: 0
Try checking the logs
have a look at /var/log/messages and post if there is anything
 
Old 10-23-2007, 06:27 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,426

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by coolpal View Post
Try checking the logs
have a look at /var/log/messages and post if there is anything
After rebooting the server, it works.

satimis@ubuntu:~$ sudo /etc/init.d/bind9 start
Code:
Password:
 * Starting domain name service... bind                                                                      [ OK ]
satimis@ubuntu:~$ cat /var/log/messages | grep bind9
No printout


atimis@ubuntu:~$ cat /var/log/messages | grep bind
Code:
.......
Oct 22 10:19:40 ubuntu kernel: [   21.840979] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
Oct 22 10:19:40 ubuntu kernel: [   21.841382] TCP: Hash tables configured (established 262144 bind 65536)
Oct 22 10:24:00 ubuntu kernel: [   21.818484] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
Oct 22 10:24:00 ubuntu kernel: [   21.818888] TCP: Hash tables configured (established 262144 bind 65536)
Oct 22 10:34:43 ubuntu kernel: [   22.883807] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
Oct 22 10:34:43 ubuntu kernel: [   22.884211] TCP: Hash tables configured (established 262144 bind 65536)
Oct 22 10:40:12 ubuntu kernel: [   22.532074] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
Oct 22 10:40:12 ubuntu kernel: [   22.532478] TCP: Hash tables configured (established 262144 bind 65536)
Oct 22 11:01:01 ubuntu kernel: [   21.910182] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
Oct 22 11:01:01 ubuntu kernel: [   21.910586] TCP: Hash tables configured (established 262144 bind 65536)
Oct 22 22:19:52 ubuntu kernel: [   22.414739] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
Oct 22 22:19:52 ubuntu kernel: [   22.415143] TCP: Hash tables configured (established 262144 bind 65536)
Oct 23 07:32:56 ubuntu kernel: [   22.380609] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
Oct 23 07:32:56 ubuntu kernel: [   22.381012] TCP: Hash tables configured (established 262144 bind 65536)
Oct 23 01:54:33 ubuntu kernel: [   22.180044] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
Oct 23 01:54:33 ubuntu kernel: [   22.180449] TCP: Hash tables configured (established 262144 bind 65536)
Oct 23 01:58:08 ubuntu kernel: [   21.958472] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
Oct 23 01:58:08 ubuntu kernel: [   21.958876] TCP: Hash tables configured (established 262144 bind 65536)
Oct 23 02:05:48 ubuntu kernel: [   22.827121] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
Oct 23 02:05:48 ubuntu kernel: [   22.827524] TCP: Hash tables configured (established 262144 bind 65536)
Oct 23 03:55:15 ubuntu kernel: [   22.587018] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
Oct 23 03:55:15 ubuntu kernel: [   22.587421] TCP: Hash tables configured (established 262144 bind 65536)
But on running;
satimis@ubuntu:~$ sudo /etc/init.d/bind9 restart
Code:
 * Stopping domain name service... bind
It hung here.

On pressing [Ctrl]+c
Code:
rndc: connect failed: 127.0.0.1#953: operation canceled
I found something on;
satimis@ubuntu:~$ cat /var/log/syslog | grep bind
Code:
.....
Oct 23 03:55:21 ubuntu named[4500]: starting BIND 9.3.4 -u bind -t /var/lib/named
Oct 23 03:55:21 ubuntu named[4500]: loading configuration from '/etc/bind/named.conf'
Oct 23 04:05:32 ubuntu named[5083]: starting BIND 9.3.4 -u bind -t /var/lib/named
Oct 23 04:05:32 ubuntu named[5083]: loading configuration from '/etc/bind/named.conf'
Oct 23 04:05:32 ubuntu named[5083]: binding TCP socket: address in use
Oct 23 04:05:32 ubuntu named[5083]: binding TCP socket: address in use
Oct 23 04:05:32 ubuntu named[5083]: binding TCP socket: address in use

Edit:

It is the firewall causing the problem.

$ sudo iptables -F
Password:
$ sudo /etc/init.d/bind9 stop
Code:
 * Stopping domain name service... bind                                                             [ OK ]
$ cat /etc/rc.local | grep 953
No printout

$ cat /etc/rc.local | grep 127.0.0.1
Code:
iptables -I OUTPUT 3 -j REJECT -s 127.0.0.1 --reject-with icmp-port-unreachable

satimis

Last edited by satimis; 10-23-2007 at 10:09 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND9 on Fedora Core 6 - intermittent problem lordbressers Linux - Networking 0 05-04-2007 04:23 AM
emergency bind9 problem Ratclaws Linux - Software 0 09-02-2005 06:13 PM
problem with install BIND9 ! silvercloud Linux - Networking 5 08-20-2005 01:21 AM
BIND9 slave DNS problem HELP!!! mlu Linux - Networking 2 05-05-2005 06:31 AM
Bind9 problem WiWa Linux - Networking 3 06-06-2004 05:27 AM


All times are GMT -5. The time now is 01:43 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 Google+: linuxquestions
Open Source Consulting | Domain Registration