use gethostbyname from the stdlib since the event version doesn't handle /etc/hosts correctly, fixes #29