Add /etc/hosts support

Those changes add /etc/hosts support as node function resolve4() do not take care of it and function lookup() is too slow.