The following name returns machine.domain.suffix, e.g. mymachine.mydomain.local
System.Net.Dns.GetHostByName("LocalHost").HostName;
I would like to obtain only 'mydomain.local' (to target a dfs namespace).
Is there a cleaner way than using substring?