You probably want to force DNS in `/etc/systemd/resolved.conf`
```ini
[Resolve]
DNS=...
# keep this empty to fail resolving if primary DNS doesn't work
FallbackDNS=
```
**Only if you want to prevent any network manager to change DNS servers**, then execute `sudo chattr -i /etc/resolv.conf; sudo nano /etc/resolv.conf; sudo chattr +i /etc/resolv.conf` to insert the following content: