You can also set the dns server in NetworkManager directly.

``` bash
nmcli connection modify "$connection-name" ipv4.dns "$dns-servers"
```
where $connection-name is the name found in `nmcli connection` under NAME, and 
$dns-servers is a comma seperated list of DNS servers you want to use. If you 
want to set it for IPv6, change ipv4 to ipv6 after the connection name and use 
ipv6 addresses for your server.

You can verify the change by
``` bash
echo 'print ipv4.dns' | nmcli connection edit "$connection-name"
```

On October 22, 2023 11:36:24 PM UTC, Michael Biebl <bi...@debian.org> wrote:
>
>> I want NetworkManager to not over write /etc/resolv.conf
>> 
>> According to the docs if dns=none is set it will not touch /etc/resolv.conf
>
>This should work, and this does work here.
>
>If not, please do file a bug report.

Reply via email to