I tried following him, just give me one name. I need a full name. Ex. my full system name is " sys101.home.homeconsultancy.lan ". The following code only gives me " sys101 ". I want the full address " sys101.home.homeconsultancy.lan ".
Here is my code:
string hostName = System.Net.Dns.GetHostName();
How to get the full name of the system?
source
share