allow /etc/hosts /etc/resolv.conf and /etc/hostname to be changed

Fixes #2267
My attempt to fix #2267