LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   what is need of reverse zone in dns? (https://www.linuxquestions.org/questions/linux-server-73/what-is-need-of-reverse-zone-in-dns-849454/)

piyusharora420 12-10-2010 04:22 AM

what is need of reverse zone in dns?
 
hi everybody,
i am a newbie and i have successfully configured dns and its working well.Now i have removed reverse zone file and its entry in named.conf file.still everything is working fine.I want to know what is purpose of reverse zone file?

macemoneta 12-10-2010 04:33 AM

A Google search yields this simple explanation:

Quote:

Reverse lookup

In most DNS lookups, clients typically perform a forward lookup, which is a search based on the DNS name of another computer as stored in an address (A) resource record. This type of query expects an IP address as the resource data for the answered response.

DNS also provides a reverse lookup process, enabling clients to use a known IP address during a name query and look up a computer name based on its address. A reverse lookup takes the form of a question, such as "Can you tell me the DNS name of the computer that uses the IP address 192.168.1.20?"

DNS was not originally designed to support this type of query. One problem for supporting the reverse query process is the difference in how the DNS namespace organizes and indexes names and how IP addresses are assigned. If the only method to answer the previous question was to search in all domains in the DNS namespace, a reverse query would take too long and require too much processing to be useful.

To solve this problem, a special domain, the in-addr.arpa domain, was defined in the DNS standards and reserved in the Internet DNS namespace to provide a practical and reliable way to perform reverse queries. To create the reverse namespace, subdomains within the in-addr.arpa domain are formed using the reverse ordering of the numbers in the dotted-decimal notation of IP addresses.

This reversed ordering of the domains for each octet value is needed because, unlike DNS names, when IP addresses are read from left to right, they are interpreted in the opposite manner. When an IP address is read from left to right, it is viewed from its most generalized information (an IP network address) in the first part of the address to the more specific information (an IP host address) contained in the last octets.

For this reason, the order of IP address octets must be reversed when building the in-addr.arpa domain tree. The IP addresses of the DNS in-addr.arpa tree can be delegated to companies as they are assigned a specific or limited set of IP addresses within the Internet-defined address classes.

Finally, the in-addr.arpa domain tree, as built into DNS, requires that an additional resource record (RR) type — the pointer (PTR) RR — be defined. This RR is used to create a mapping in the reverse lookup zone that typically corresponds to a host (A) named RR for the DNS computer name of a host in its forward lookup zone.

jamrock 12-10-2010 07:30 AM

The forward lookup zone resolves (translates) computer names to i.p. addresses.

The reverse lookup zone resolves i.p. addresses to computer names.

Reverse lookup zones are needed for some applications.

If you send email over the internet, you will need a reverse lookup record for your mail server. In order to detect spam, many mail servers will check to see if the i.p. address from which mail is being sent, corresponds to the email address from which the mail is being sent.

If you send mail from bob@piyusharora420.com, these mail servers will want to verify that the i.p. address on the email resolves to piyusharora420.com.

If the i.p. address does not match the domain name, or if it cannot be verified, they will reject the mail.

There may be other applications that need to do reverse lookups.

If you are running on a local area network, a reverse lookup zone may not be necessary. For example, Windows DNS does not create a reverse lookup zone by default.

Why do you want to delete the reverse lookup zone? It doesn't hurt to have it.

piyusharora420 12-10-2010 07:53 AM

thank you both of you.Now its very much clear for me.
can you tell me how to know hostname of a pc in lan whose ip address is known?
is there any command for it?
No' it wasn't hurting me, i was just doing experiment by deleting reverse lookup zone.

jamrock 12-10-2010 08:44 AM

If you want to resolve 192.168.0.98 to a hostname

nslookup 192.168.0.98

If you want to resolve a computer named payroll to an i.p. address

nslookup payroll

piyusharora420 12-10-2010 11:17 PM

thank you very much sir
this website is best for a newbie like me
thnx alot


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