sbin/edit-hosts: first working version