<p>How do you resolve a domain name to an IP address with .NET/C#?</p>

[{'answer_id': 4821, 'author': 'lubos hasko', 'author_id': 275, 'author_profile': 'https://Stackoverflow.com/users/275', 'pm_score': 5, 'selected': True, 'text': '<pre><code>using System.Net;\n\nforeach (IPAddress address in Dns.GetHostAddresses("www.google.com"))\n{\n   Console.WriteLine(address.ToString());\n}\n</code></pre>\n'}, {'answer_id': 4823, 'author': 'Yaakov Ellis', 'author_id': 51, 'author_profile': 'https://Stackoverflow.com/users/51', 'pm_score': 1, 'selected': False, 'text': '<p>Try using the <a href="https://learn.microsoft.com/en-us/dotnet/api/system.net.dns" rel="nofollow noreferrer">System.Net.Dns</a> class</p>\n'}]
['https://Stackoverflow.com/questions/4816', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/390/']