Can I get the names of all the domains a Linux com

2019-08-07 14:50发布

I have a Linux machine that is connected (by external NICs) to 2 external domains. I want to get the names of the domains my machine is connected to programmatically using C++. How can I get all these names in my application?

By the way, I have already tried getnameinfo, and it doesn't work for me. So please suggest another answer.

Also, it would be more helpful to me if your answers included sample code.

标签: c++ linux dns
1条回答
登录 后发表回答