Gethostbyaddr failing for private IP addresses
807559Jul 5 2007 — edited Jul 6 2007We are having problems with reverse DNS resolution for our private IP addresses. We first noticed this when our syslog-ng was not displaying name in the log entries, but rather IP addresses.
Nslookup and dig reversed resolved the addresses fine, so we don�t think the issue is in DNS.
We further narrowed down the source of the problem when we wrote a small C program that called gethostbyaddr for the private address. This program also failed to reverse resolve the addresses.
We decided to snoop the traffic to our DNS server. What we saw was that no packets were being sent. In other words our Solaris server didn�t even try to query DNS for the reverse resolution.
Is there a flag or setting somewhere in Solaris that we can adjust to have reverse resolution for private IP addresses sent to our DNS servers?
Thanks�
Mike