Problem on installing/config bind
Stephen Liu
satimis at yahoo.com
Tue Oct 28 13:59:50 UTC 2008
--- Matus UHLAR - fantomas <uhlar at fantomas.sk> wrote:
> On 28.10.08 13:25, Stephen Liu wrote:
> > Further to my last posting I found the cause of the problem.
>
> > 28-Oct-2008 05:20:24.549 could not configure root hints from '
> > /etc/named.root': file not found
> > 28-Oct-2008 05:20:24.549 loading configuration: file not found
> > 28-Oct-2008 05:20:24.549 exiting (due to fatal error)
>
> > Changing the line;
> > file " /etc/named.root";
>
> > Whether it is necessary to put the full path of "/named.root"? If
> YES,
> > what will be the full path?
>
> > On which file specifies ROOTDIR? TIA
>
> either /etc/named.root, or <chrooted directory>/etc/named.root
> - do you chroot?
Hi Matus,
Performed following test.
# nano /usr/local/bind/etc/named.conf
changing;
/etc/name.root
to;
/usr/local/bind/etc/name.conf
# /etc/init.d/sysklogd restart
# /usr/local/bind/sbin/named -u named -t /usr/local/bind -c
/etc/named.conf -g
28-Oct-2008 13:35:24.080 starting BIND 9.5.0 -u named -t
/usr/local/bind -c /etc/named.conf -g
28-Oct-2008 13:35:24.082 loading configuration from '/etc/named.conf'
28-Oct-2008 13:35:24.083 listening on IPv4 interface lo, 127.0.0.1#53
28-Oct-2008 13:35:24.083 listening on IPv4 interface eth0,
192.168.0.203#53
28-Oct-2008 13:35:24.084 could not configure root hints from
'/usr/local/bind/etc/named.root': file not found
28-Oct-2008 13:35:24.084 loading configuration: file not found
28-Oct-2008 13:35:24.084 exiting (due to fatal error)
Still the same.
Ah I found something new on re-editing named.conf restoring its
original state /etc/named.root
Before I followed that howto leaving a white space between " and
/etc/name.root"
On changing /usr/local/bind/etc/name.root back to /etc/name.root I
cleared the white space.
# /usr/local/bind/sbin/named -u named -t /usr/local/bind -c
/etc/named.conf -g
28-Oct-2008 13:41:30.744 starting BIND 9.5.0 -u named -t
/usr/local/bind -c /etc/named.conf -g
28-Oct-2008 13:41:30.746 loading configuration from '/etc/named.conf'
28-Oct-2008 13:41:30.746 listening on IPv4 interface lo, 127.0.0.1#53
28-Oct-2008 13:41:30.747 listening on IPv4 interface eth0,
192.168.0.203#53
28-Oct-2008 13:41:30.749 default max-cache-size (33554432) applies
28-Oct-2008 13:41:30.750 automatic empty zone: 0.IN-ADDR.ARPA
28-Oct-2008 13:41:30.750 automatic empty zone: 127.IN-ADDR.ARPA
28-Oct-2008 13:41:30.750 automatic empty zone: 254.169.IN-ADDR.ARPA
28-Oct-2008 13:41:30.750 automatic empty zone: 2.0.192.IN-ADDR.ARPA
28-Oct-2008 13:41:30.750 automatic empty zone:
255.255.255.255.IN-ADDR.ARPA
28-Oct-2008 13:41:30.750 automatic empty 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.0.IP6.ARPA
28-Oct-2008 13:41:30.751 automatic empty zone:
1.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
28-Oct-2008 13:41:30.751 automatic empty zone: D.F.IP6.ARPA
28-Oct-2008 13:41:30.751 automatic empty zone: 8.E.F.IP6.ARPA
28-Oct-2008 13:41:30.751 automatic empty zone: 9.E.F.IP6.ARPA
28-Oct-2008 13:41:30.751 automatic empty zone: A.E.F.IP6.ARPA
28-Oct-2008 13:41:30.751 automatic empty zone: B.E.F.IP6.ARPA
28-Oct-2008 13:41:30.752 default max-cache-size (33554432) applies:
view _bind
28-Oct-2008 13:41:30.753 none:0: open: /usr/local/bind/etc/rndc.key:
file not found
28-Oct-2008 13:41:30.753 couldn't add command channel 127.0.0.1#953:
file not found
28-Oct-2008 13:41:30.753 none:0: open: /usr/local/bind/etc/rndc.key:
file not found
28-Oct-2008 13:41:30.753 couldn't add command channel ::1#953: file not
found
28-Oct-2008 13:41:30.753 ignoring config file logging statement due to
-g option
28-Oct-2008 13:41:30.755 running
Here it seems waiting for input???
On another console;
# ps aux | grep -v grep | grep named
named 1196 0.0 13.1 6900 4348 pts/0 S+ 13:41 0:00
/usr/local/bind/sbin/named -u named -t /usr/local/bind -c
/etc/named.conf -g
# host www.linux.org 127.0.0.1
www.linux.org A 198.182.196.56
On the first console I have to press [Ctrl]+c to exit. Then it prints;
28-Oct-2008 13:51:33.413 shutting down
28-Oct-2008 13:51:33.413 no longer listening on 127.0.0.1#53
28-Oct-2008 13:51:33.413 no longer listening on 192.168.0.203#53
28-Oct-2008 13:51:33.415 exiting
I suppose getting it done now???
B.R.
Stephen L
Send instant messages to your online friends http://uk.messenger.yahoo.com
More information about the bind-users
mailing list