Handle error if gethostbyname fails

handling gethostname() isn't enough
Version bump 1.4