开发者

Java DNS suffix

When I do ipconfig /all I see DNS Suffix S开发者_高级运维earch List. I need to retrieve that value from java. Does anyone knows how to get it or where does it come from?


The DNS suffix list is read from

HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\SearchList


You could use the Runtime class to execute Windows commands (e.g. ipconfig /all) and parse the standard input.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜