If you specifically want to take manual control and stop anything managing it, that is a legitimate configuration and it is worth doing deliberately rather than by fighting the tooling.
The general shape is: disable or mask whichever manager is writing the file, replace the symlink with a real file, and put your servers in it. On systems using the stub resolver, /etc/resolv.conf is a symlink into a generated directory — replacing the symlink is the actual step people miss, because editing through the symlink edits the generated file.
Be aware of what you give up. The stub resolver provides caching, per-interface DNS and DNSSEC handling. On a VPS with a single interface you probably do not care. On anything with a VPN, you will care immediately, because split DNS stops working and you lose name resolution for internal hosts the moment the tunnel comes up.