deshaw
asked on
Why GetHostEntry behaviour is different
Hello,
Could anyone please take up this task. It is very important for us. Now I am having only one question. Why
Console.WriteLine("The FQDN host name is : " + Dns.GetHostEntry(string.Em pty).HostN ame); prints just host name. Actually it prints "hostname.site.domain.com" in FQDN format but we have some hosts where it gives only "hostname" and that causing the problem.
Is it related to TCP IP parameters in registry??
Thanks.
Could anyone please take up this task. It is very important for us. Now I am having only one question. Why
Console.WriteLine("The FQDN host name is : " + Dns.GetHostEntry(string.Em
Is it related to TCP IP parameters in registry??
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
ASKER
We have solved this issue by removing server name from hosts file. We show that in hosts file we have given hostname like "hostname IP" and not given topdomain name. This was a citrix server. Could any one not tell what is the relationship between hosts file and GetHostEntry function?
Thanks.