Dave’s Brain
Home
Search
Browse
Recent
Keywords
Other sites
Feedback
Sign in
Random
Crawlers
Programming Tips
- Linux: DNS lookup
Date:
2019jan26
OS:
Linux
Language:
C/C++
Q.
Linux: DNS lookup
A.
We used to use gethostbyname() But now there is getaddrinfo()
http://beej.us/guide/bgnet/html/single/bgnet.html#getaddrinfo