What's an easiest reliable way to retrieve the fully qualified domain name of the current host in Win32?
I've tried calling gethostname(), but it returns a NetBIOS name.
What's an easiest reliable way to retrieve the fully qualified domain name of the current host in Win32?
I've tried calling gethostname(), but it returns a NetBIOS name.
Try getnameinfo
, it comes with a sample that worked for me.