开发者

Java DNS suffix

开发者 https://www.devze.com 2023-04-08 13:07 出处:网络
When I do ipconfig /all I see DNS Suffix S开发者_高级运维earch List. I need to retrieve that value from java.

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

精彩评论

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

关注公众号