C#: Get IP Address from Domain Name? August 23, 2023 by Tarik You can use the System.Net.Dns class: Dns.GetHostAddresses("www.test.com");