[Gambas-user] DnsClient not working?

Benoît Minisini gambas at ...1...
Fri Nov 21 23:19:55 CET 2014


Le 21/11/2014 23:06, T Lee Davidson a écrit :
> Greetings,
>
> Either I am doing something wrong, my network config is amiss (LAN with
> DNS server set to router's IP), or DnsClient is not working.
>
> Exec ["host", Domain] works. But, both DnsClient.GetHostName and
> DnsClient.GetHostIP return null for a valid, resolvable host.

The documentation is false. You must call GetHostName() to get the 
hostname, and GetHostIP() to get the ip. Note that gambaswiki.org is 
currently down (not my fault).

>
> Project attached.
>
> By the way, the documentation states that the default process mode for
> DnsClient is synchronous. But, when I dropped the DnsClient control onto
> the main form, the Async property defaulted to True. Does the
> documentation need to be updated?

The doc is right there, the IDE is false. I will fix it.

-- 
Benoît Minisini




More information about the User mailing list