close

Step1)
$ sudo apt install -y resolvconf

Step2)
$ sudo vim /etc/resolvconf/resolv.conf.d/head
or
$ sudo vim /etc/resolvconf/resolv.conf.d/tail
===================================
nameserver 192.168.254.254
nameserver 10.10.10.10
nameserver 8.8.8.8
search dreamtails.local dreamtails.com

===================================

Step3)
$ sudo resolvconf -u

Step4)
$ sudo systemctl disable systemd-resolved
$ sudo systemctl stop systemd-resolved
$ sudo reboot

Step5)
$ cat /etc/resolv.conf
==================================
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 192.168.254.254
nameserver 10.10.10.10
nameserver 8.8.8.8
search dreamtails.local dreamtails.com

==================================

arrow
arrow
    全站熱搜

    dreamtails 發表在 痞客邦 留言(0) 人氣()