A solution I found, with much help from Telegram "Linux for Everyone" people is relatively simple. The details are in https://x.com/i/grok/share/scmM5yZrHm8LakpNnWAS6zD1K .
Basically, the commands for ethernet are:
{to find the name of the ethernet connection}
nmcli connection show
{to add specific nameserver connections to resolv.conf}
sudo nmcli con mod "connection name from first command" ipv4.dns "8.8.8.8 8.8.4.4 1.1.1.1"
{to stop overwriting the last statement}
sudo nmcli con mod "connection name from first command" ipv4.ignore-auto-dns yes
{make the changes without a reboot}
sudo nmcli con down "connection from the first command" && sudo nmcli con up "connection from the first command"
{check the resolv.conf file to determine if the changes have been made}
cat /etc/resolv.conf
This was sustained through a reboot.
Basically, the commands for ethernet are:
{to find the name of the ethernet connection}
nmcli connection show
{to add specific nameserver connections to resolv.conf}
sudo nmcli con mod "connection name from first command" ipv4.dns "8.8.8.8 8.8.4.4 1.1.1.1"
{to stop overwriting the last statement}
sudo nmcli con mod "connection name from first command" ipv4.ignore-auto-dns yes
{make the changes without a reboot}
sudo nmcli con down "connection from the first command" && sudo nmcli con up "connection from the first command"
{check the resolv.conf file to determine if the changes have been made}
cat /etc/resolv.conf
This was sustained through a reboot.
Statistics: Posted by herbk — Mon Mar 17, 2025 11:26 pm