Fix: gethostbyname IP address byte order

The gethostbyname() call was not returning the IP address in network
byte order as stated in the man page.

Reported-by: Micah Anderson <micah@riseup.net>
Signed-off-by: David Goulet <dgoulet@ev0ke.net>