--- a/src/libvirt-php.c +++ b/src/libvirt-php.c @@ -1168,7 +1168,7 @@ /* need to get FQDN of the local name */ memset(&hints, 0, sizeof(hints)); - hints.ai_flags = AI_CANONNAME|AI_CANONIDN; + hints.ai_flags = AI_CANONNAME; hints.ai_family = AF_UNSPEC; /* could not get FQDN or got localhost, use whatever gethostname gave us */