Browse - 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