You can find the IP address given a host name via InetAddress addr =
InetAddress.getByName(hostName)


On Mon, Dec 2, 2013 at 11:01 AM, Nirmal Fernando <[email protected]>wrote:

> Can SM do a DNS look-up and keep an in-memory mapping?
>
>
> On Mon, Dec 2, 2013 at 10:55 AM, Reka Thirunavukkarasu <[email protected]>wrote:
>
>> Hi
>>
>> We have message broker URL in SM in order to use by all cartridges. If we
>> make the URL with host name, then how will a cartridge get the correct
>> lookup unless it has a etc/hosts entry which needs the ip again or has DNS
>> mapping or has some kind of look up mechanism.
>>
>> How are we going to address this?
>>
>> Thanks,
>> Reka
>>
>>
>> On Mon, Dec 2, 2013 at 10:43 AM, Nirmal Fernando 
>> <[email protected]>wrote:
>>
>>> Hi All,
>>>
>>> I think we should do $Subject. Hard coding IPs make it hard to run. Idea
>>> is to try to utilize the configs in hosts file inside Stratos Manager (SM).
>>>
>>> What do you think?
>>>
>>> --
>>> Best Regards,
>>> Nirmal
>>>
>>> Nirmal Fernando.
>>> PPMC Member & Committer of Apache Stratos,
>>> Senior Software Engineer, WSO2 Inc.
>>>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>
>>
>>
>> --
>> Reka Thirunavukkarasu
>> Software Engineer,
>> WSO2, Inc.:http://wso2.com,
>> Mobile: +94776442007
>>
>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



-- 
Best Regards,
Nirmal

Nirmal Fernando.
PPMC Member & Committer of Apache Stratos,
Senior Software Engineer, WSO2 Inc.

Blog: http://nirmalfdo.blogspot.com/

Reply via email to