0
What you refer to as the full name is actually the MachineName
and the name of HostName
. You can obey him that way:
static void Main(string[] args)
{
var nome = Environment.MachineName;
var nomeCompleto = Dns.GetHostEntry(nome).HostName;
Console.WriteLine(nome); //PC-162
Console.WriteLine(nomeCompleto); //PC-162.meudominio.com.br
Console.Read();
}
Why are you saying that the question is not clear or useful?
– user117214
see my answer.
– Leandro Angelo
I’ve seen it! and it worked just like that!
– user117214