The hostname should not be a localhost address.

This causes problems for all manner of software. Its also not "faster."
Modern networking stacks detect when IP address are bound to a
local interface and "do the right thing."

Also this code causes duplicate entries in hosts which won't break things.
But isn't a best practice. Fixes #24.