ntpq返回值特别慢

原因:


It is possible that ntpq is trying to resolve DNS for the name of the NTP peers and that a misconfigured DNS is causing the timeout and delay of 5 minutes.

You can confirm that that's the case by asking it not to resolve DNS, using the ntpq -np command (the -n flag tells it not to resolve DNS.)

If that's indeed the case, you can then look into why resolving DNS for those IPs is not working (but that's a separate topic, probably deserves a specific question.)

解决办法:

ntpq -np

 

posted @ 2023-11-24 17:50  正在努力的BOY  阅读(49)  评论(0编辑  收藏  举报