问题原文
原帖链接 · Thomas J. Girsch · CC BY-SA 3.0
In our environment (lots of CentOS 7 VMs), we routinely encounter the oft-discussed issue where name service lookups result in a 5 second delay as a request times out, even on "successful" requests. As others have tried, we've disabled IPv6 (not used in our internal environment), and it didn't completely resolve the issue. Searching through the forums, we found the suggestion to add "options single-request" to /etc/resolv.conf; this does seem to fix the problem, but manual edits to resolv.conf are routinely overwritten by NetworkManager.
I've searched around, but I can't seem to find a place in nmtui or nmcli to specify this so that NetworkManager knows to include the option when it rewrites the file.
Am I missing something obvious? Is there a way to set this somewhere else? Is there another, preferable fix for the issue?
已采纳解答
原帖链接 · Thomas J. Girsch · CC BY-SA 4.0
I know the real solution is to fix the AD server that handles DNS requests (my network admin is begging for an answer as to how), but in the meantime, I've found a workaround.
In /etc/sysconfig/network, add the following line:
RES_OPTIONS="single-request"
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
