[
https://issues.apache.org/jira/browse/WHIRR-511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13206233#comment-13206233
]
Andrei Savu commented on WHIRR-511:
-----------------------------------
I have done a bit of investigation on this and it seems like there is no
sensible way of retrieving the reverse DNS name for a private IP and I think we
shouldn't even attempt that. For EC2 the hostname can be used as the reverse
DNS name for the private IP but unfortunately the same it's not true for
cloudservers.
> Instance.getPrivateHostName returns an IP address
> -------------------------------------------------
>
> Key: WHIRR-511
> URL: https://issues.apache.org/jira/browse/WHIRR-511
> Project: Whirr
> Issue Type: Bug
> Components: core
> Affects Versions: 0.8.0
> Environment: AWS m1.large
> Reporter: David Arthur
> Assignee: Andrei Savu
> Priority: Minor
> Labels: aws, hostname
> Fix For: 0.8.0
>
>
> getPrivateHostName returns the same thing as getPrivateIp. I would expect to
> get something like "ip-42-142-142-142.ec2.internal" as is reported by the AWS
> console.
> Instance.getNodeMetadata().getHostname() returns the actual `hostname` as
> reported by the OS of the instance (which worked for me).
> Not sure if this is expected behavior, or if it's a JCloud issue, or what.
> Feel free to mark invalid
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira