Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

From (Solaris 11.1 with current patches, m4000 128GB) syslog:

Jun 17 10:06:14 sun-m4k-03 sendmail[4993]: [ID 702911 mail.warning] gethostbyaddr( failed: 1

The ip is valid from the commandline:

ping is alive

nslookup appears to reverse the octets when doing a lookup:


** server can't find NXDOMAIN

Tried a search on the internet - no luck

share|improve this question
up vote 3 down vote accepted

This is correct. Reverse DNS lookups are performed by querying the PTR record for the IP address in the .in-addr.arpa domain. DNS names have the least significant/least broad component first, so octets of the IP address, which are written with the most significant/most broad component first, are put in the reverse order so that each class of network can have a DNS zones.

If you want to support reverse DNS lookups on private IP addresses, you will have to configure a zone for 10.in-addr.arpa. to hold the PTR record for

share|improve this answer
@WarrenYoung Yes, I know it has to do with DNS zones, but the order in which they are written was originally an arbitrary design decision. Had DNS been designed to use the opposite order, like Java classes, then your example hostname would be com.mycompany.www.server456, the rDNS lookup name for would be .arpa.in-addr., and URLs would have all elements going from broader to more specific identifiers. – depquid Jun 18 '13 at 16:26
@WarrenYoung You're right. In my mind, the metaphorical ordering concept extends to the components of DNS names, but since it's not a byte-ordering issue, I see how my use of the term 'endian' was confusing. I have edited my answer to remove it. – depquid Jun 18 '13 at 16:49
I've removed my comments. – Warren Young Jun 18 '13 at 16:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.