Dear All;
I am confiuring DNS on CentOS 5.4 but unable to resolve.The configuration files and output of commands is given below.
IP Address=192.168.0.66
/etc/resolv.conf
nameserver 192.168.0.66
nameserver 127.0.0.1
search localdomain
/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 localhost.localdomain localhost
#127.0.0.1 homeserver.homedomain.com
192.168.0.66 homeserver.homedomain.com abc
#::1 localhost6.localdomain6 localhost6
/etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=homeserver
/var/named/chroot/etc/named.rfc.zone
// 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.localdomain" IN {
# type master;
# file "named.localhost";
# allow-update { none; };
#};
#zone "localhost" IN {
# type master;
# file "named.localhost";
# allow-update { none; };
#};
#zone "1.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.loopback";
# allow-update { none; };
#};
zone "1.0.0.127.in-addr.arpa" IN {
type master;
file "named.loopback";
allow-update { none; };
};
zone "0.in-addr.arpa" IN {
type master;
file "named.empty";
allow-update { none; };
};
zone "homedomain.com" IN {
type master;
file "homedomain.com.fwd";
allow-update { none; };
};
zone "sports.com" IN {
type master;
file "sports.com.fwd";
allow-update { none; };
};
zone "islam.edu" IN {
type master;
file "islam.edu.fwd";
allow-update { none; };
};
#zone "0.168.192.in-addr.arpa" IN {
# type master;
# file "homedomain.com.rev";
# allow-update { none; };
#};
/var/named/chroot/var/named/homedomain.com.fwd
$ORIGIN homedomain.com.
@ IN SOA homeserver.homedomain.com. root. (
45 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS homeserver.homedomain.com.
homeserver.homedomain.com IN A 192.168.0.66
@ IN MX 10 homeserver.homedomain.com.
www IN CNAME homeserver
/var/named/chroot/var/named/sports.com.fwd
$ORIGIN sports.com.
@ IN SOA homeserver.homedomain.com. root. (
46 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS homeserver.homedomain.com.
@ IN MX 10 homeserver.homedomain.com.
/var/named/chroot/var/named/islam.edu.fwd
$ORIGIN islam.edu.
@ IN SOA homeserver.homedomain.com. root. (
47 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS homeserver.homedomain.com.
@ IN MX 10 homeserver.homedomain.com.
dig MX homedomain.com
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> MX homedomain.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 64378
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;homedomain.com. IN MX
;; Query time: 0 msec
;; SERVER: 192.168.0.66#53(192.168.0.66)
;; WHEN: Wed Apr 20 01:11:22 2011
;; MSG SIZE rcvd: 32
[root@homeserver etc]# dig MX sports.com
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> MX sports.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 39594
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;sports.com. IN MX
;; Query time: 1 msec
;; SERVER: 192.168.0.66#53(192.168.0.66)
;; WHEN: Wed Apr 20 01:11:43 2011
;; MSG SIZE rcvd: 28