Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

System.Net.Dns.GetHostName() returning dot

$
0
0

System.Net.Dns.GetHostName() is returning the dot character instead of the machine name.  I need it to return the machine name so that it matches up with what is in sql server.  Is there any way to control this?

msg.HostName = System.Net.Dns.GetHostName(); //Environment.MachineName;  this was returning . for some reason

thanks

scott



Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>