LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Problem with PTR Record using BIND version 9.3.3 on RHEL (https://www.linuxquestions.org/questions/linux-server-73/problem-with-ptr-record-using-bind-version-9-3-3-on-rhel-785569/)

amitkush 01-29-2010 06:00 AM

Problem with PTR Record using BIND version 9.3.3 on RHEL
 
I have been scratching my head whole day :scratch: 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 :rolleyes:

bathory 01-29-2010 07:44 AM

I guess you don't own the whole a.b.c.0/24 subnet. So you have to contact your ISP and ask to give you the delegation of the subnet chunk you own.
You can read more on this here.

Regards

amitkush 01-29-2010 09:29 AM

Thanks! We have 16 IPs assigned from the ISP.

I went through the txt file. This has been my first time in setting up bind server & honestly speaking I could make little of this file. Does it mean that the reverse pointer I created will be over ridden by the ISP entry? Does in that case, we don't have any other option but to contact the ISP?

bathory 01-29-2010 09:46 AM

You should contact your ISP and ask him to let you delegate the x.x.x.x/28 chunk you own (maybe he has already done it). He should also tell you the zone name (like 0/28.x.x.x.x.in-addr.arpa or something like that) and you should make sure to use that zone name for the reverse zone.

Regards

amitkush 01-29-2010 10:28 AM

1 Attachment(s)
Attached here is a whois information from APNIC server about the ip range owned by us. Does it give some info?
Sorry for troubling u again.

bathory 01-29-2010 10:52 AM

Name your reverse zone 224/28.82.212.210.in-addr.arpa. (mind the trailing dot) and see if it works.
If not, ask your ISP for the exact name of the zone and tell them that your dns server will be authoritative for that zone.

amitkush 01-29-2010 10:59 AM

Thanks


All times are GMT -5. The time now is 01:04 PM.