Added support for gethostbyname, for passing host names in addition to I...

...P addresses.
Looks like the convention in this file is to put the `{` on the next line.