DNS Server Problem in Centos
When i enter ip or address nslookup does not reply any answer. It shows no server found. "servfail".........
This is my named.conf file:
//
// named.conf for Red Hat caching-nameserver
//
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* 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 "bbit.org" IN {
type master;
file "bbit.org.for";
allow-update { none; };
};
zone "168.192.in-addr.arpa" IN {
type master;
file "bbit.org.rev";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
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.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};
zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};
include "/etc/rndc.key";
This is my forward file:
$TTL 86400
@ 1D IN SOA belal.bbit.org. root.bbit.org. (
111208 ; serial
28800 ; refresh (8 hours)
14400 ; retry (4 hours)
3600000 ; expire (5 weeks 6 days 16 hours)
86400 ; minimum (1 day)
)
1D IN NS belal.bbit.org.
1D IN A 192.168.0.1
belal IN A 192.168.0.1
This is my reverse file:
$TTL 86400
@ IN SOA belal.bbit.org. root.bbit.org. (
310808 ; serial
28800 ; refresh (8 hours)
14400 ; retry (4 hours)
3600000 ; expire (5 weeks 6 days 16 hours)
86400 ; minimum (1 day)
)
IN NS belal.bbit.org.
1 IN PTR belal.bbit.org.
|