[Gambas-user] DnsClient not working?

T Lee Davidson t.lee.davidson at ...626...
Sat Nov 22 00:04:21 CET 2014


On 11/21/2014 05:19 PM, Benoît Minisini wrote:
> 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).

Yes, that works better :-) Thank you, Benoît.


-- 
Lee
__________

"Artificial Intelligence is no match for natural stupidity."




More information about the User mailing list