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.
精彩评论