How to change DNS server for disposable sys-net?

Hello, I am struggling with change DNS server (from 192.168.1.1 to for example 1.1.1.1) in my disposable sys-net. I changed it via GUI and in /etc/resolf.conf in sys-net, but it doesnt work.

What is recommended way how to persistently change DNS server for disposable sys-net, please?

Setup your connection via gui, then before reboot, copy xxx.nmconnection file from sys-net to sys-net’s dvm template’s

/rw/config/NM-system-connections

folder. That way, it’ll persist across reboots.