[Interest] Getting a hostname given the IP Address

Joseph W Joshua joshua at panthertechno.com
Wed Oct 24 09:29:13 CEST 2012



On Oct 24, 2012, at 8:40 AM, Thiago Macieira <thiago.macieira at intel.com> wrote:

> On quarta-feira, 24 de outubro de 2012 05.38.03, Joseph W Joshua wrote:
>> Hello all,
>> 
>> I am writing an application for our company, and at one point I need to get
>> the hostname of a computer on the network given the IP address. If I use
>> QHostInfo::lookupHost() connected to a lookup slot, and provided with the
>> IP address, it returns the same IP address.
> 
> in the QHostInfo that you receive in your slot, the hostName() returns the IP 
> address in string form?
> 
> For every hostname you've tried? Try 8.8.8.8 for example.
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

The computers in question are in a locked network that does not have Internet access. I will try 8.8.8.8 and get back to you. 

But all computers in the local networks, 192.168.0.xxx and 10.20.21.xxx respond with the IP address and not the hostname. 


More information about the Interest mailing list