I had the same problem. What I've done is i've removed this line: domain DOMAIN_NAME_HERE from /etc/resolve.conf file After this gethostbyname...
Separate names with a comma.