Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-09-2010, 02:40 PM   #1
LQ Newbie
Registered: Nov 2009
Posts: 5

Rep: Reputation: 0
Configuration of BIND server in RHEL5.4 on VMware

Happy new year to all (Though it is a little bit late to wish and sorry
for that). Lets jump to problem.(Pls be patient while reading). My
problem is to setup BIND server in RHEL5.4 . I install VMware on a
WindwosXP machine. And I have 5 virtual machine on VMware. I create a
virtual LAN with these 5 machine. I try to configure VMware_machine_1
as the DNS server for other Virtual machines. Here I give WindowsXP and
2 Virtual machine's configuration.

Network configuration

WindowsXP(Host machine)
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :

Here I use two Ethernet card. One for get internet and another for
create virtual LAN.

Connection type is NAT (Used to share the host's IP
IP (I don't know how it get DHCP)
Subnet mask
Default Gateway (I leave it blank)

Connection type is STATIC (Used to create the LAN and
here I use Ethernet card VMnet2)
Subnet mask
Default Gateway (Nil)

Connection type is STATIC (Here I use Ethernet card
Subnet Mask
Default Gateway (Nil)


Here are some more configuration of VMware_machine_1
cat /etc/hosts
#Do not...... localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6 server1

cat /etc/sysconfig/network

cat /etc/resolv.conf
search localdomain

I install package bind, bind-chroot and caching-nameserver from my
local repository.
Then I run
chkconfig named on
service named start

cd /var/named/chroot/etc/
cp named.caching-nameserver.conf named.conf
vim named.conf (here I edit and add bellows configuration)
listen-on port 53 {;; };
allow-query { localhost;; };
zone "" IN{
type master;
file "example.fz"; (N.B- forward zone file)
allow-update { none; };
zone " IN{
type master;
file "example.rz"; (N.B- reverse zone file)
allow-update { none; };

Then I create two zone file in /var/named/chroot/var/named/

vim /var/named/chroot/var/named/example.fz
$TTL 86400
@ IN SOA (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS server1
server1 IN A

vim /var/named/chroot/var/named/example.rz
$TTL 86400
@ IN SOA (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS server1
server1 IN A

I change the group ownership (to named) of the bellows file.

After that when I run (service named restart) command the result

displays as bellows.

Stopping named: [ OK ]
Starting named:
Error in named configuration:
/etc/named.conf:42: when using 'view' statements, all zones must be in
views [FAILED]

So what is the problem. If someone fix it for me or help me regarding
this I will be grateful. And thanks in advance.

N.B- Sorry for my poor English writing skill.

Last edited by kinamedebo; 01-09-2010 at 02:45 PM.
Old 01-09-2010, 04:47 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
That's about the best error message I remember seeing for a long time... "when using 'view' statements, all zones must be in views". Speaks for itself really, but then at the same time, nothing you've posted mentions views... As the error messages says, if you are using view statements then every zone must be redefined within each one.

Error messages like this are a godsend, and from it you should really be able to see it's a configuration issue with named.conf. It's nothign to do with IP addressing, and certainly nothing whatsoever to do with VMware.


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
NIS Server Configuration in RHEL5 AslamAnsari Linux - Server 2 01-05-2010 08:54 AM
Communication between Host(RHEL5) and VMware Guest OS(RHEL5) riteshanand40 Linux - Newbie 2 08-02-2009 11:52 PM
configuration DNS ,bind server Tomas12345 Linux - Newbie 1 06-29-2009 09:42 AM
LDAP server configuration on RHEL5 ciphyre Linux - Server 14 11-19-2008 03:36 AM
Installation of RHEL5 (Server and client configuration) shanthakumarks Linux - Newbie 7 06-15-2008 03:50 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration