Hosts: has now an ip resolver option

Also changed replacement functions