HOW IT WORKS : Use the System.Net Namespace‘s DNS ( System.Net.Dns ) class and its function ( getHostEntry() ) to resolve the Host to IPAdress resolution and Vice-Versa NAMESPACE :  System.Net ASSEMBLY    :  System (in System.dll) FUNCTION     :  GetHostentry WHAT IS System.Net NAMESPACE ? The System.Net…