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

My attempt to fix #2267