我已经对“/etc/reslov.conf”进行了更改,并希望更改生效。我尝试按照此方法操作,但仍然没有效果。
$ sudo su
sudo: unable to resolve host accretive-new32GB-ephimeral-new
root@accretive-new32GB-ephimeral-new:/home/ubuntu# /etc/init.d/networking restart
root@accretive-new32GB-ephimeral-new:/home/ubuntu# exit
ubuntu@accretive-new32GB-ephimeral-new:~$ sudo su
sudo: unable to resolve host accretive-new32GB-ephimeral-new
root@accretive-new32GB-ephimeral-new:/home/ubuntu# resolvconf -u
root@accretive-new32GB-ephimeral-new:/home/ubuntu# exit
ubuntu@accretive-new32GB-ephimeral-new:~$ sudo su
sudo: unable to resolve host accretive-new32GB-ephimeral-new
root@accretive-new32GB-ephimeral-new:/home/ubuntu# service resolvconf restart
resolvconf stop/waiting
resolvconf start/running
root@accretive-new32GB-ephimeral-new:/home/ubuntu# exit
ubuntu@accretive-new32GB-ephimeral-new:~$ sudo su
sudo: unable to resolve host accretive-new32GB-ephimeral-new
root@accretive-new32GB-ephimeral-new:/home/ubuntu#
reslov.conf 的变更:
nameserver 8.8.8.8