I need the FQDN of my local machine (app01.example.com).
Normally, I would use System.Net.Dns.GetHostName(), but if you look at the community content at the bottom of the documentation for Dns.GetHostName(), you'll notice that there's some strange behavior when you're on a machine that has IPv4 & 6 enabled.
I do not have apriori knowledge of whether the servers running my code will have IPv6 configured or not. They will absolutely have IPv4 configured.
Given these constraints, what do you think is the most reliable method for getting the FQDN of my machine?
Reference SO Questions: