Skip to main content

How permanent change Ubuntu18.04 /etc/resolv.conf

Submitted by taotao on Tue, 03/24/2020 - 17:48

How to permanent change Ubuntu 18.04 /etc/resolv.conf ?

Setp 1 :

Change /run/systemd/resolve/resolv.conf , add the following recods:

options edns0

Step 2 :

remove the soft link /etc/resolv.conf

rm -rf /etc/resolv.conf


Step 3 : Create new soft link to file /run/systemd/resolv.conf

ln -s /run/systemd/resolv.conf /etc/resolv.conf



Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.