Dear all,
I am trying to setup DNS in redhat 6.1
I am getting error when i try to start service
step 1 :
yum install bind-*
step 2 :
/etc/init.d/named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
zone localhost/IN: loading from master file named.localhost failed: file not found
zone localhost/IN: not loaded due to errors.
_default/localhost/IN: file not found
zone 1.0.0.127.in-addr.arpa/IN: loading from master file named.loopback failed: file not found
zone 1.0.0.127.in-addr.arpa/IN: not loaded due to errors.
_default/1.0.0.127.in-addr.arpa/IN: file not found
zone
ec.net/IN: loading from master file ec.net-frz failed: file not found
zone ec.net/IN: not loaded due to errors.
_default/ec.net/IN: file not found
zone
201.168.192.in-addr.arpa/IN: loading from master file 201.168.192-rvz failed: file not found
zone 201.168.192.in-addr.arpa/IN: not loaded due to errors.
_default/201.168.192.in-addr.arpa/IN: file not found
I follow the steps as
cat /etc/named.conf
acl NSIP {192.168.201.243;};
acl NSNET {127.0.0.1/32; 192.168.11.0/24;};
options {
listen-on port 53 { 127.0.0.1; NSIP; };
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; NSNET ;};
allow-recursion { NSNET ;};
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
include "/etc/named.rfc1912.zones";
[root@mydns named]# cat /etc/named.rfc1912.zones
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
// and
http://www.ietf.org/internet-drafts/...l-zones-02.txt
// (c)2007 R W Franks
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
zone "localhost" IN {
type master;
file "named.localhost";
allow-update { none; };
};
zone "1.0.0.127.in-addr.arpa" IN {
type master;
file "named.loopback";
allow-update { none; };
};
zone "ec.net" IN {
type master;
file "ec.net-frz";
allow-update { none; };
};
zone "201.168.192.in-addr.arpa" IN {
type master;
file "201.168.192-rvz";
allow-update { none; };
};
step 3:
[root@mydns named]# cd /var/named
[root@mydns named]# ls
201.168.192-rvz data ec.net-frz named.empty named.loopback
chroot dynamic named.ca named.localhost slaves
[root@mydns named]# cat ec.net-frz
$TTL 1d
ec.net. IN SOA mydns.ec.net. root.ec.net. (
100 ; se = serial number
8h ; ref = refresh
5m ; ret = update retry
3w ; ex = expiry
3h ; min = minimum
)
IN NS mydns.ec.net.
; DNS server
mydns IN A 192.168.201.243
; RAC Nodes Public name
node1 IN A 192.168.201.234
node2 IN A 192.168.201.235
; RAC Nodes Public VIPs
node1-vip IN A 192.168.201.251
node2-vip IN A 192.168.201.252
; 3 SCAN VIPs
lab-scan IN A 192.168.201.261
lab-scan IN A 192.168.201.262
; Storage Network
nas IN A 192.168.201.241
[root@mydns named]# cat 201.168.192-rvz
$TTL 1d
@ IN SOA mydns.ec.net. root.ec.net. (
100 ; se = serial number
8h ; ref = refresh
5m ; ret = update retry
3w ; ex = expiry
3h ; min = minimum
)
IN NS mydns.ec.net.
; Storage Network Reverse Lookup
243 IN PTR nas.ec.net.
234 IN PTR node1.ec.net.
235 IN PTR node2.ec.net.
I placed the ec.net-frz and 201.168.192-rvz file in /var/named but during service start it return error that ec.net-frz and 201.168.192-rvz not found.
is there any other default location where ec.net-frz and 201.168.192-rvz file can be placed ?
Please help.
Regards,
Morad.