Reverse DNS Problem

Issues related to configuring your network
Post Reply
presende
Posts: 11
Joined: 2006/12/23 11:41:15

Reverse DNS Problem

Post by presende » 2010/05/26 18:18:45

I need any help I can get on this.

if I go to www.dnsgoodies.com and do a check on my reverse it gaves me a error, although I think all is ok.

Usind Bind 9.3.6
here is the NAMED.CONF

[code]
acl local {
213.13.112.16/28;
};
acl recursionyes { 213.13.112.16/28; };
acl origin { 62.48.183.193; };
options {
directory "/etc";
pid-file "/var/run/named/named.pid";
recursion no;
version "Go away!";
statistics-file "/var/named/chroot/var/named/data/named_stats.txt";
dump-file "/var/named/chroot/var/named/data/cache_dump.db";
forwarders {
194.65.100.117;
194.65.3.20;
};
allow-recursion { recursionyes; };
};
logging {
channel default-log {
syslog syslog;
severity notice;
print-category yes;
print-severity yes;
print-time yes;
};
channel xfer-out {
file "/var/log/xfer-out.log";
severity info;
print-time yes;
};
channel xfer-in {
file "/var/log/xfer-in.log";
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category default {
default-log;
default_syslog;
};
};
zone "." {
type hint;
file "/etc/db.cache";
};
controls {
inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { rndc-key; };
};
key rndc-key {
algorithm hmac-md5;
secret "xxxxxxxxxxxxxxxxxxxxxxxxx";
};

zone "medianet.pt" in {
type master;
file "/var/named/medianet.pt.hosts";
allow-transfer { 62.48.183.193;
};
};

zone "112.13.213.in-addr.arpa" IN {
type master;
file "/var/named/medianet.rev";
allow-update { none; };
allow-transfer { origin; };
allow-query { any; };
};
[/code]
here is the medianet.pt.hosts :

[code]
$TTL 86400
medianet.pt. IN SOA dns1.medianet.pt. dnsadmin.medianet.pt. (
2010051507
10800
900
604800
3600 )

medianet.pt. IN NS dns1.medianet.pt.
medianet.pt. IN NS origin.nextvision.pt.
medianet.pt. IN MX 1 mail.medianet.pt.
medianet.pt. IN A 213.13.112.20
localhost IN A 127.0.0.1
www.medianet.pt. IN A 195.23.54.5
dns1.medianet.pt. IN A 213.13.112.20
ithkul.medianet.pt. IN A 213.13.112.20
ftp.medianet.pt. IN A 213.13.112.20
mail.medianet.pt. IN A 213.13.112.20
[/code]
here is the 213.13.112 reverse zone, file is medianet.rev

[code]
$TTL 86400
@ IN SOA dns1.medianet.pt. dnsadmin.medianet.pt. (
2010051515 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
3600 ) ; Minimum

IN NS dns1.medianet.pt.
20 IN PTR ithkul.medianet.pt.
[/code]
Any clues on what is wrong???????????????

Any help would be apreciated!
Thanks.

Paulo

[Moderator edited to insert [i]code[/i] tags to preserve the formatting.]

User avatar
WhatsHisName
Posts: 1547
Joined: 2005/12/19 20:21:43
Location: /earth/usa/nj

Reverse DNS Problem

Post by WhatsHisName » 2010/05/26 20:06:30

Is the reverse zone delegated to your organization or to your ISP?

Since you are listing a public IP range, then I tend to think "ISP" is the answer, in which case, you need to contact the ISP for rDNS changes.

If they "own" it, then only the ISP can make rDNS changes.

presende
Posts: 11
Joined: 2006/12/23 11:41:15

Re: Reverse DNS Problem

Post by presende » 2010/05/26 23:18:38

yes, the reverse zone is delegated to my ISP

I asked them to add my ip to the reverse. 213.13.112.20 ithkul.medianet.pt

I think that they did it, but since I don't know much about dig and nslookup commands, can you help me and check them out?

my provider IP DNS servers are:

194.65.3.20
194.65.3.21
194.65.100.117


Thank you.
Paulo R

chuina
Posts: 355
Joined: 2009/12/11 10:25:56

Re: Reverse DNS Problem

Post by chuina » 2010/05/27 11:19:13

[quote].......if I go to www.dnsgoodies.com and do a check on my reverse it gaves me a error, although I think all is ok.......[/quote]
The error message could give a better clue.

[quote]......I think that they did it, but since I don't know much about dig and nslookup commands, can you help me and check them out?......[/quote]

Forward zone,
[code]dig <domain name>
nslookup <domain name>[/code]
Reverse zone,
[code]dig -x <DNS IP>
nslookup <DNS IP>[/code]

presende
Posts: 11
Joined: 2006/12/23 11:41:15

Re: Reverse DNS Problem

Post by presende » 2010/05/28 23:06:30

Did some testing and the results are:

[quote];
[root@ithkul ~]# dig medianet.pt

; > DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 > medianet.pt
;; global options: printcmd
;; Got answer:
;; ->>HEADER> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 > -x 213.13.112.20
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 18764
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;20.112.13.213.in-addr.arpa. IN PTR

;; ANSWER SECTION:
20.112.13.213.in-addr.arpa. 86400 IN PTR ithkul.medianet.pt.

;; AUTHORITY SECTION:
112.13.213.in-addr.arpa. 86400 IN NS dns1.medianet.pt.

;; ADDITIONAL SECTION:
dns1.medianet.pt. 86400 IN A 213.13.112.20

;; Query time: 1 msec
;; SERVER: 213.13.112.20#53(213.13.112.20)
;; WHEN: Sat May 29 00:00:49 2010
;; MSG SIZE rcvd: 111
[/quote]

and the result of the nslookup is

[quote];
[root@ithkul ~]# nslookup 213.13.112.20
Server: 213.13.112.20
Address: 213.13.112.20#53

20.112.13.213.in-addr.arpa name = ithkul.medianet.pt.
[/quote]

Can anyone help on this results??

Thanks.
Paulo

chuina
Posts: 355
Joined: 2009/12/11 10:25:56

Re: Reverse DNS Problem

Post by chuina » 2010/05/29 19:30:26

Both [b]dig[/b] showed [b]status:NOERROR[/b].
Your DNS configs seems fine.
What problem are you seeing?

presende
Posts: 11
Joined: 2006/12/23 11:41:15

Re: Reverse DNS Problem

Post by presende » 2010/05/31 16:46:15

Hi,

if I go www.dnsgoodies.com and do a Reverse DNS Lookup test, it fails saying:

** server can't find 20.112.13.213.in-addr.arpa: NXDOMAIN

That's the problem

Paulo R.

chuina
Posts: 355
Joined: 2009/12/11 10:25:56

Re: Reverse DNS Problem

Post by chuina » 2010/06/02 23:46:12

[quote]presende wrote:
.........................here is the 213.13.112 reverse zone, file is medianet.rev
..................

@ IN SOA dns1.medianet.pt. dnsadmin.medianet.pt. (

..............................................
.............................................................
IN NS dns1.medianet.pt.
20 IN PTR [b]ithkul[/b].medianet.pt.[/quote]

What aboute [b]20 IN PTR dns1.medianet.pt[/b] ?

Post Reply

Return to “CentOS 5 - Networking Support”