Skip to content

resolving shortname #109

Answered by MichaCo
gecko2308 asked this question in Q&A
Discussion options

You must be logged in to vote

:update: see #118

Hi @gecko2308,
This library currently only works with FQNs, a fully qualified domain name. Its a pure DNS library and will not query NetBios or WINS servers and all the other things the build in Windows DNS client does.
The .NET library System.Net.Dns uses the native Windows APIs which uses the Windows own Dns resolver.

You can figure out the domain suffix by scanning your network interfaces NetworkInterface.GetAllNetworkInterfaces(); and look into GetIPProperties(); of the right interface. If that's all configured you can append that suffix to the hostname your are trying to query.
But that might or might not work either depending on your network setup...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MichaCo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants