Thanks so much engkin.
I could find how to use IdStack on doing a search on GStackClass.
The following code works to resolve FQDN:
var
GStack:TidStack;
begin
GStack := IdStackFactory;
showmessage(Gstack.ResolveHost('www.google.com'));
GStack.Free;
end;
No sure f it's the correct way to create an instance of GStackClass, please let me know if it's wrong.
However I have the same problem to resolve my domain raspberrypi.local ; it doesn't return anything. Which is quite annoying as it works really well with Python (not tested on Win tho) :
$ python -c 'import socket; print socket.gethostbyname("raspberrypi.local")'
192.168.1.248
I can live without it and/or implement a solution for *nix platform but it would have been great to have a multi-platform solution. Even if I understand that mDNS is not quite like DNS and MS implemention is really different from Bonjour/avahi.
But if anyone has a suggestion I am really up to hear it.