【问题标题】:Can I get the names of all the domains a Linux computer is connected to in C++?我可以在 C++ 中获取 Linux 计算机连接到的所有域的名称吗?
【发布时间】:2011-06-09 22:18:49
【问题描述】:

我有一台 Linux 机器(通过外部 NIC)连接到 2 个外部域。我想获取我的机器使用 C++ 以编程方式连接到的域的名称。如何在我的应用程序中获取所有这些名称?

顺便说一句,我已经尝试过getnameinfo,但它对我不起作用。所以请提出另一个答案。

另外,如果您的答案包含示例代码,对我会更有帮助。

【问题讨论】:

  • 呃……什么?我完全不明白这个问题。
  • 可能是 Kerberos 领域,因此在 Kerberos API 中 klist 等效 h5l.org/manual/heimdal-1-3-branch/krb5
  • 你在这里说的是什么类型的域? Windows Active Directory 域?
  • Cde Gray - Windows Active Directory 域。谢谢。

标签: c++ linux dns


【解决方案1】:

【讨论】:

    猜你喜欢
    • 2011-06-10
    • 2011-09-04
    • 2012-03-14
    • 2010-09-05
    • 2017-01-01
    • 2011-05-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多