I am taking a DNS course on Linux Academy. In one of the lab, they define a reverse zone. In this zone they add MXs records. Does it make sense to have MX record defined in a reverse zone?
Details:
For this they do
vim /etc/named.conf
zone "1.0.10.in-addr.arpa" {
type master;
file "/var/named/1.0.10.db";
};
And content of /var/named/1.0.10.db
is:
TTL 86400
@ IN SOA nameserver.myserver.com. root.myserver.com. (
10030 ; Serial
3600 ; Refresh
1800 ; Retry
604800 ; Expiry
86400 ; Minimum TTL
)
; Name Server
@ IN NS nameserver.myserver.com.
; PTR Record Definitions
240 IN PTR nameserver.myserver.com.
241 IN PTR mailprod.myserver.com.
242 IN PTR mailbackup.myserver.com.
; which is last octet of my IP
; Mail Exchange Records
@ IN MX 10 mailprod.myserver.com.
@ IN MX 20 mailbackup.myserver.com.
Similarly I try to add a A record in reverse but it is not relevant because a look up would be possible by doing:
nslookup <dns-name>.1.0.10.in-addr.arpa localhost
Doing
ns lookup <dns-name>.mylabserver.com localhost
would not work, (or if it is, it is a non authoritative answer, DNS recursion ). Am I correct?
I understand from https://en.wikipedia.org/wiki/MX_record that defining a MX record, requires a A record. As a consequence we can do a reverse lookup of MX with a PTR?
Thus I am wondering if adding a MX records in reverse zone makes sense, how we would retrieve this MX then?
What did I miss?