В C# для DNS поднять этот хост неизвестен
Hello , i have to try to connect one ip address in my desktop application with the dns.beginhostentry but it gives error "no such host is known" while i am using with alias its works fine for the same ip address. example : string ip_address ="123.456.789.012" string alias = "mymachine" 'this is alias of above ip address. DNS.BeginGetHostEntry(ip_address,abcd,this); this statement does not works. it show the error that "no such host is known". while DNS.BeginGetHostEntry(alias,abcd,this); this statement does works no issues at all. please solve this query. thanks
Что я уже пробовал:
Note : i dont want to do host entry into the host file of the any particular pc. because i want to fix the ip address at all.