This command converts a host name into
an IP address using the domain name system. e.g. for me using mnDNS
with host_name set to “localhost” returns 127.0.0.1.
MnStart must have been used before this
command.
An error code of '11001' indicates that
the host could not be found, which normally means that the host name
does not exist.
C++ users: the memory for the returned string is managed by winsock. It is only guaranteed to remain valid before the next DarkNet command that uses winsock. In other words, if you want to use the address later on you should copy it to memory allocated by your application. Note that because memory to the return string is allocated by winsock, you do not need to deallocate it yourself.
char * Host_name: This is the name of the host e.g. www.google.com, localhost.
An IP address if no error occurred
A blank string if an error occurred.
DBP
C++
.Net