satimis
23rd October 2007, 13:36
Hi folks,
Ubuntu 7.04 server amd64 (Host OS)
bind9
VMWare
$ sudo /etc/init.d/bind9 start
Password:
* Starting domain name service... bind [ OK ]
It worked w/o complaint.
$ cat /var/log/messages | grep bind9
No printout
$ cat /var/log/messages | grep bind
.......
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;
$ sudo /etc/init.d/bind9 restart
* Stopping domain name service... bind
It hung here.
On pressing [Ctrl]+c
rndc: connect failed: 127.0.0.1#953: operation canceled
I found something on;
$ cat /var/log/syslog | grep bind
.....
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
$ sudo /etc/init.d/bind9 stop
* Stopping domain name service... bind
the same, also hanging.
[Ctrl]+c
rndc: connect failed: 127.0.0.1#953: operation canceled
Where shall I check and how to correct the "restart" problem. TIA
Edit:
It is the firewall causing the problem.
$ sudo iptables -F
Password:
$ sudo /etc/init.d/bind9 stop
* Stopping domain name service... bind [ OK ]
$ cat /etc/rc.local | grep 953
No printout
$ cat /etc/rc.local | grep 127.0.0.1
iptables -I OUTPUT 3 -j REJECT -s 127.0.0.1 --reject-with icmp-port-unreachable
satimis
Ubuntu 7.04 server amd64 (Host OS)
bind9
VMWare
$ sudo /etc/init.d/bind9 start
Password:
* Starting domain name service... bind [ OK ]
It worked w/o complaint.
$ cat /var/log/messages | grep bind9
No printout
$ cat /var/log/messages | grep bind
.......
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;
$ sudo /etc/init.d/bind9 restart
* Stopping domain name service... bind
It hung here.
On pressing [Ctrl]+c
rndc: connect failed: 127.0.0.1#953: operation canceled
I found something on;
$ cat /var/log/syslog | grep bind
.....
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
$ sudo /etc/init.d/bind9 stop
* Stopping domain name service... bind
the same, also hanging.
[Ctrl]+c
rndc: connect failed: 127.0.0.1#953: operation canceled
Where shall I check and how to correct the "restart" problem. TIA
Edit:
It is the firewall causing the problem.
$ sudo iptables -F
Password:
$ sudo /etc/init.d/bind9 stop
* Stopping domain name service... bind [ OK ]
$ cat /etc/rc.local | grep 953
No printout
$ cat /etc/rc.local | grep 127.0.0.1
iptables -I OUTPUT 3 -j REJECT -s 127.0.0.1 --reject-with icmp-port-unreachable
satimis