Monday, March 20, 2006

gethostbyname-weirdness

after migrating to the new v-server the gethostbyname-function behaves strange: calling gethostbyname('nonexistanthostname.nowhere.com') got the queried domainname back, if the host didn't exist. On the new server we are getting back the server's ip-number. I still can't imagine what's the reason of this strange behaviour and wether this is php-related or system-related - but i fixed (hopefully all) scripts to have the lookups done directly via dig.

the subdomain-check should have stopped to report every nonexistent host with serversniff's ip-address.

tom

2 comments:

audrey lefour said...

Indeed, this realization is a real wonder, thank you for this article in any case.

Vrai voyance gratuite par mail

Reema dsouza said...

Ah MERCI de parler en quelques mots de la relativisation que j'applique au quotidien moi aussi.

gay telephone