How can I solve the issue of adding DNS to etc/resolv. conf and restoring it to its original state after a reboot?

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu

Which version of system do you use? Please provide the version of the system here:

self built images

Please describe your issue below:


How can I solve the issue of adding DNS to etc/resolv. conf and restoring it to its original state after a reboot?

Hello @Lexus

You can use nmcli by NetworkManager to configure DNS server

nmcli con mod <WiFi-name> ipv4.dns "8.8.8.8 8.8.4.4"
nmcli con mod <WiFi-name> ipv4.ignore-auto-dns yes

It takes effect after SBC restart the NetworkManager service or reboot.

1 Like