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.
使用命令提示符刷新系统 dns 的常用命令是ipconfig/flushdns。反正有没有从java做同样的刷新操作?任何执行相同刷新 dns 操作的 java 函数?
您可能希望使用 Java 运行相同的命令:
Process p= Runtime.getRuntime().exec("cmd /c ipconfig /flushdns");