dns reverse zone is not working.

Issues related to applications and software problems
Post Reply
rahulvishwa1981
Posts: 5
Joined: 2019/10/26 07:56:47

dns reverse zone is not working.

Post by rahulvishwa1981 » 2019/10/26 08:50:46

hi to all, I've centos64 as one server and second is client and centos 7.5 as two clients.
i am configuring dns in centos 6.4. mine forward zone is working properly gives following output :-

Code: Select all

[root@serverora11gr2 Desktop]# dig serverora11gr2.db.net

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.68.rc1.el6_10.3 <<>> serverora11gr2.db.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60891
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;serverora11gr2.db.net.		IN	A

;; ANSWER SECTION:
serverora11gr2.db.net.	2592000	IN	A	192.168.20.50

;; AUTHORITY SECTION:
db.net.			2592000	IN	NS	serverora11gr2.db.net.

;; Query time: 0 msec
;; SERVER: 192.168.20.50#53(192.168.20.50)
;; WHEN: Sat Oct 26 07:20:49 2019
;; MSG SIZE  rcvd: 69
all VMs are pinging to each other.

but when i tried to dig reverse zone this shows following error:-

Code: Select all

[root@serverora11gr2 Desktop]# dig -x 192.168.20.60

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.68.rc1.el6_10.3 <<>> -x 192.168.20.60
;; global options: +cmd
;; connection timed out; no servers could be reached
mine reverse zone file is :-

Code: Select all

$TTL 1D
@       IN SOA  serverora11gr2.db.net. root.serverora11gr2.db.net. (
                                        10      ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
@       IN      NS      serverora11gr2.db.net.
50      IN      PTR     serverora11gr2.db.net.
60      IN      PTR     server75.db.net.
70      IN      PTR     centos75client.db.net.
80      IN      PTR     centos64client.db.net.

content of data/named.run

Code: Select all

zone 20.168.192-in-addr.aprpa/IN: loaded serial 10
zone 0.in-addr.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
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: loaded serial 0
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone db.net/IN: loaded serial 10
managed-keys-zone ./IN: loaded serial 19
running
error (network unreachable) resolving './NS/IN': 2001:503:ba3e::2:30#53
error (network unreachable) resolving 'centos.excellmedia.net/A/IN': 2001:503:ba3e::2:30#53
error (network unreachable) resolving 'centos.excellmedia.net/AAAA/IN': 2001:503:ba3e::2:30#53

User avatar
TrevorH
Forum Moderator
Posts: 27152
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: dns reverse zone is not working.

Post by TrevorH » 2019/10/26 11:25:50

hi to all, I've centos64 as one server and second is client and centos 7.5 as two clients.
Both of which are massively out of date. You need to run yum update more often. The only supported releases are 6.10 and 7.7.

CentOS 6.4 is from early 2013 so you are missing over 6 *years* of patches. CentOS 7.5 is from April 2018 so is "only" missing 18 months of fixes.

Update. Only the current version is supported.
60 IN PTR server75.db.net.
None of my entries contain "IN". The equivalent entry for that one on my system would say "60 PTR server75.db.net."
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

Whoever
Posts: 1089
Joined: 2013/09/06 03:12:10

Re: dns reverse zone is not working.

Post by Whoever » 2019/10/26 18:19:13

Reverse DNS needs to resolve entries in the form <reversed ip address>.in-addr.arpa

For example, a fragment from my named.conf file:
zone "0.168.192.in-addr.arpa" in {
type master;
allow-update {192.168.89.0/29; 127.0.0.0/8; };
also-notify {192.168.89.4;};
notify yes;
file "db.192.168.0";
};

Post Reply

Return to “CentOS 6 - Software Support”