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.
我的 GNU/Linux 机器连接到 DHCP。我想检索DHCP(DNS 域名)的选项 015getnameinfo的值,但不使用,因为它使用 DNS 来检索域名。
getnameinfo
我怎样才能用 C/C++ 做到这一点?
我dhclient将一堆租约信息写入/var/lib/dhcp3/dhclient-[uuid]-[iface].lease文件。我不知道这些文件名中的 uuid 代表什么,但它确实报告了来自 dhcp 服务器的不同选项。
dhclient
/var/lib/dhcp3/dhclient-[uuid]-[iface].lease
Fore SUSE:DHCP 选项写入 /var/lib/dhcpcd/dhcpcd-eth[x].info