How to convert the DNS to The Ip address
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
You might need to ask your question again. gethostbyname function retrive the ip using host name such as "www.google.com". If i am not mistaken this ip is retrieved from DNS server. if you dont have a DNS server IP but another name you may not be able to connect with internet
-
You may use the
getaddrinfo()
function [^].