I got it working today all i did was kept the zone and rr.zone files as it is as i think there were no errors in those files
I removed the caching-nameserver rpm and reinstalled it
I reconfigured the named.conf file as follows
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "example.com" IN {
type master;
file "example.com.zone";
allow-update { none; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "example.com.rr.zone";
allow-update { none; };
};
include "/etc/rndc.key";
This dnt work as did get connection refused errors
I stopped iptables
Reloaded named and rndc and still dnt worked
I just restarted the machine and then
[root@server1 root]# host -l example.com
example.com SOA server1.example.com. root.example.com.example.com. 2005052901 10
800 900 604800 86400
example.com name server server1.example.com.example.com.
ftp.example.com is an alias for server1.example.com.
Lalu.example.com has address 192.168.0.99
mail.example.com is an alias for server1.example.com.
server1.example.com has address 192.168.0.199
example.com SOA server1.example.com. root.example.com.example.com. 2005052901 10
800 900 604800 86400
[root@server1 root]#
It is working great
Thanks for ur help anyways
JAS