Remount root partition rw

Hi,

I need to change /etc/nsswitch.conf as the name resolution is not working as it should for some esphome devices.
but the root partition is mounted read only. remounting it rw did not work.
how can I make /etc (or nsswitch) writeable?
Best regards and thanks in advance,
Otto