I have been scratching my head whole day
wondering what is going on....hope someone here will help my hair!
I am using bind for DNS services on RHEL 5. The forward lookup is working fine. When I try to do a reverse lookup at the server, it shows the correct output but when I try lookup from Internet it shows something like - "mysite.com points to a.b.c.d, which has no d.c.b.a.in-addr.arpa PTR record"
Here are the files:
/etc/named.conf
---------------
options {
directory "/var/named";
statistics-file "/var/named/data/named_stats.txt";
};
controls{
inet 127.0.0.1 allow {localhost;} keys {rndckey;};
};
// Declaring reverse lookup zone
// Declaration of domain name resolution
view intranet {
zone "mysite.com" {
type master;
file "/var/named/mysite.com.intranet.hosts";
};
zone "c.b.a.in-addr.arpa" {
type master;
file "/var/named/a.b.c.intranet.rev";
};
};
/var/named/mysite.com.intranet.hosts
--------------------------------------
$ttl 38400
mysite.com. IN SOA dns.mysite.com. admin.mysite.com. (
1247205291
10800
3600
604800
38400 )
mysite.com. IN NS dns.mysite.com.
mail.mysite.com. IN A a.b.c.e
mysite.com. IN MX 1 mail.mysite.com.
mysite.com. IN A a.b.c.d
www.mail.mysite.com. IN A a.b.c.e
dns.mysite.com. IN A a.b.c.f
www.mysite.com. IN CNAME mysite.com.
/var/named/a.b.c.intranet.rev
----------------------------------
$ttl 38400
c.b.a.in-addr.arpa. IN SOA dns.mysite.com. root.localhost. (
1264759594
10800
3600
604800
38400 )
c.b.a.in-addr.arpa. IN NS dns.mysite.com.
d.c.b.a.in-addr.arpa. IN PTR mysite.com.
e.c.b.a.in-addr.arpa. IN PTR mail.mysite.com.
Kindly HELP