Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 C++ Linux 应用程序中:如何从 DNS 中获取引用名称的 IP?
请附上代码示例。
10倍
使用 getaddrinfo()。此处和此处的文档和示例。
使用函数 gethostbyname。
请在谷歌中搜索。