使用方法
在resolv.conf中添加
echo “options single-request” >> /etc/resolv.conf
使用此方法可暂时解决此问题
若要长期使用请在/etc/NetworkManager中:
cd dispatcher.d/
touch 15-resolv
在/etc/NetworkManager/dispatcher.d/15-resolv文件中添加
#!/bin/bash
# Description : script to override default resolv.conf file
# with customized file.
cp -f /etc/resolv.conf.custom /etc/resolv.conf
在/etc/ 中添加resolv.conf.custom并修改
cp /etc/resolv.conf /etc/resolv.conf.custom
echo “options single-request”
重启NetworkManager
sudo sytemctl restart NetworkManager
成功