Reputation: 1031
In my C++ Linux application: how can I get the IP referring to a name from a DNS?
Please attach code sample.
10x
Upvotes: 1
Views: 2950
Reputation: 6389
Use getaddrinfo(). Documentation and examples here and here.
Upvotes: 4
Reputation: 2592
With the function gethostbyname.
Please, search in google.
Upvotes: 0