Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th January 2011, 15:03
NukeZilla NukeZilla is offline
Junior Member
 
Join Date: Jan 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Install A Chrooted DNS Server (BIND9) wont work

Hi

Will i did the prefect server for centos 5.5 and i getting an error. it's using centos 5.5 64 bit and i did what it said..

Code:
yum install bind-chroot
Code:
chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
cd /var/named/chroot/var/named/
ln -s ../../ chroot
cp /usr/share/doc/bind-9.3.6/sample/var/named/named.local /var/named/chroot/var/named/named.local
cp /usr/share/doc/bind-9.3.6/sample/var/named/named.root /var/named/chroot/var/named/named.root
touch /var/named/chroot/etc/named.conf.local
vi /var/named/chroot/etc/named.conf
Code:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
        listen-on port 53 { 127.0.0.1; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named/chroot/var/named";
        dump-file       "/var/named/chroot/var/named/data/cache_dump.db";
        statistics-file "/var/named/chroot/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/chroot/var/named/data/named_mem_stats.txt";
        allow-query     { localhost; };
        recursion yes;
};
logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};
zone "." IN {
        type hint;
        file "named.root";
};
include "/var/named/chroot/etc/named.conf.local";
Code:
chkconfig --levels 235 named on
/etc/init.d/named start
and i getting this error:

/etc/init.d/named start

Starting named: [FAILED]


Here something you might need to know:

[root@xpro-world named]# updatedb
[root@xpro-world named]# locate named.conf
/etc/named.conf
/etc/named.conf.local
/etc/dbus-1/system.d/named.conf
/usr/local/ispconfig/server/conf/bind_named.conf.local.master
/usr/local/ispconfig/server/conf/bind_named.conf.local.slave
/usr/share/doc/bind-9.3.6/sample/etc/named.conf
/usr/share/man/man5/named.conf.5.gz
/usr/share/system-config-bind/profiles/default/named.conf
/var/named/chroot/etc/.named.conf.swp
/var/named/chroot/etc/named.conf
/var/named/chroot/etc/named.conf.local

and this

[root@xpro-world ~]# updatedb
[root@xpro-world ~]# locate named.root.hints
/usr/share/doc/bind-9.3.6/sample/etc/named.root.hints



i'm not sure if any of that is important but i really need help
Reply With Quote
Sponsored Links
  #2  
Old 10th January 2011, 14:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Any errors in your logs? To which tutorial (URL) are you referring?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 10th January 2011, 14:30
NukeZilla NukeZilla is offline
Junior Member
 
Join Date: Jan 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nope and the tutorial is http://www.howtoforge.com/perfect-se...64-ispconfig-3
Reply With Quote
  #4  
Old 11th January 2011, 15:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

What's in /var/named/chroot/etc/named.conf.local? Is SELinux disabled?
What's the output of
Code:
netstat -tap
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 12th January 2011, 00:34
NukeZilla NukeZilla is offline
Junior Member
 
Join Date: Jan 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

[root@xpro-world named]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:mysql *:* LISTEN 27929/mysqld
tcp 0 0 *:ftp *:* LISTEN 16179/pure-ftpd (SE
tcp 0 0 *:imaps *:* LISTEN 25796/dovecot
tcp 0 0 *op3s *:* LISTEN 25796/dovecot
tcp 0 0 *op3 *:* LISTEN 25796/dovecot
tcp 0 0 *:imap *:* LISTEN 25796/dovecot
tcp 0 0 *:http *:* LISTEN 32276/httpd
tcp 0 0 *:ftp *:* LISTEN 16179/pure-ftpd (SE
tcp 0 0 *:ssh *:* LISTEN 25694/sshd
tcp 0 560 xpro-world.com:ssh cpc11-mfld14:isoipsigport-2 ESTABLISHED 9840/0


how ever i also tried did this


tail -f /var/log/messages
Jan 12 01:32:12 xpro-world named[22399]: using up to 4096 sockets
Jan 12 01:32:12 xpro-world named[22399]: loading configuration from '/etc/named.conf'
Jan 12 01:32:12 xpro-world named[22399]: max open files (1024) is smaller than max sockets (4096)
Jan 12 01:32:12 xpro-world named[22399]: using default UDP/IPv4 port range: [1024, 65535]
Jan 12 01:32:12 xpro-world named[22399]: using default UDP/IPv6 port range: [1024, 65535]
Jan 12 01:32:12 xpro-world named[22399]: listening on IPv6 interface lo, ::1#53
Jan 12 01:32:12 xpro-world named[22399]: listening on IPv4 interface lo, 127.0.0.1#53
Jan 12 01:32:12 xpro-world named[22399]: could not configure root hints from 'named.root': file not found
Jan 12 01:32:12 xpro-world named[22399]: loading configuration: file not found
Jan 12 01:32:12 xpro-world named[22399]: exiting (due to fatal error)
Reply With Quote
  #6  
Old 12th January 2011, 15:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Can you post both your /etc/named.conf and your /var/named/chroot/etc/named.conf?

What's the output of
Code:
updatedb
locate named.root
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 28th January 2011, 08:19
budim2010 budim2010 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Sorry to interrupt this thread, but I also had similar problems.
Bind9 failed to start.
I'm following The perfect server FEDORA 10.

Anybody can help ...??

Thanks alot .

my netstat -tap
Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 *:33929                     *:*                         LISTEN      1682/rpc.statd      
tcp        0      0 *:mysql                     *:*                         LISTEN      2105/mysqld         
tcp        0      0 *:sunrpc                    *:*                         LISTEN      1669/rpcbind        
tcp        0      0 *:ssh                       *:*                         LISTEN      1993/sshd           
tcp        0      0 localhost.localdomain:ipp   *:*                         LISTEN      2315/cupsd          
tcp        0      0 *:smtp                      *:*                         LISTEN      2226/master         
tcp        0      0 *:imaps                     *:*                         LISTEN      2158/couriertcpd    
tcp        0      0 *:pop3s                     *:*                         LISTEN      2170/couriertcpd    
tcp        0      0 *:pop3                      *:*                         LISTEN      2164/couriertcpd    
tcp        0      0 *:imap                      *:*                         LISTEN      2151/couriertcpd    
tcp        0      0 *:sunrpc                    *:*                         LISTEN      1669/rpcbind        
tcp        0      0 *:http                      *:*                         LISTEN      2245/httpd          
tcp        0      0 *:ssh                       *:*                         LISTEN      1993/sshd           
tcp        0      0 *:smtp                      *:*                         LISTEN      2226/master         
tcp        0      0 *:https                     *:*                         LISTEN      2245/httpd
my /etc/named.conf
Code:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
	listen-on port 53 { 127.0.0.1; };
	listen-on-v6 port 53 { ::1; };
	directory 	"/var/named";
	dump-file 	"/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
	allow-query     { localhost; };
	recursion yes;
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
	type hint;
	file "named.ca";
};

include "/etc/named.rfc1912.zones";

my /var/named/chroot/etc/named.conf
Code:
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
	listen-on port 53 { 127.0.0.1; };
	listen-on-v6 port 53 { ::1; };
	directory 	"/var/named";
	dump-file 	"/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
	allow-query     { localhost; };
	recursion yes;
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
	type hint;
	file "named.ca";
};

include "/etc/named.rfc1912.zones";
Reply With Quote
  #8  
Old 29th January 2011, 13:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Which tutorial (URL)? Do you get any error messages?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 31st January 2011, 07:08
budim2010 budim2010 is offline
Junior Member
 
Join Date: Nov 2010
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Question

Hi Falko, thanks for responding...

I'm following http://www.howtoforge.com/perfect-server-fedora-10

Here's the error :

[root@mail budi]# /etc/init.d/named start
Starting named: /usr/sbin/named: symbol lookup error: /usr/sbin/named: undefined symbol: isc_stats_dump
[FAILED]


And here's my log messages, I don't think it's related...

Code:
Jan 31 11:10:20 mail nm-system-settings: Loaded plugin ifcfg-rh: (c) 2007 - 2008 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
Jan 31 11:10:21 mail nm-system-settings:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth1 ...
Jan 31 11:10:21 mail nm-system-settings:    ifcfg-rh:     read connection 'System eth1'
Jan 31 11:10:21 mail nm-system-settings:    ifcfg-rh: Ignoring connection 'System eth1' and its device because NM_CONTROLLED was false.
Jan 31 11:10:21 mail nm-system-settings:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-eth0 ...
Jan 31 11:10:21 mail nm-system-settings:    ifcfg-rh:     read connection 'System eth0'
Jan 31 11:10:21 mail nm-system-settings:    ifcfg-rh: Ignoring connection 'System eth0' and its device because NM_CONTROLLED was false.
Jan 31 11:10:21 mail nm-system-settings:    ifcfg-rh: parsing /etc/sysconfig/network-scripts/ifcfg-lo ...
Reply With Quote
  #10  
Old 1st February 2011, 15:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
 
Default

Do you use ISPConfig 2? If so, what do you have in the fields named.conf and Zonefiles Dir. on the DNS tab under Management > Server > Settings?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 13:19
Problem with mail server and subdomains MyKE General 7 26th February 2010 11:18
ISPConfig3 Mail Warn Errors reason8 General 3 25th November 2009 14:58
Google Apps dayjahone General 19 29th March 2008 18:25
Dns question Mahir Installation/Configuration 48 14th November 2006 11:19


All times are GMT +2. The time now is 15:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.