You are not logged in.

#1 2013-03-28 11:39:07

Kooothor
Member
From: Paname
Registered: 2008-08-02
Posts: 228

php doesn't manage to resolve addresses

Dear all,

I have a problem which I believe can be fixed by configuring the right thing in the right place, but I need your help to find this.

I have php5 installed on my localhost@work behind a NAT/firewall, and here is what happens when I want to resolve an address :

echo gethostbyname('www.flood.fr'); # outputs www.flood.fr instead of 88.191.126.56

With the same setup @home, it works fine.

So I believe php can't find the right DNS server (which is correctly put inside /etc/resolve.conf) or something.

Do you have an idea for a fix ?

Thank you for reading.
Regards,
~k


ktr

Offline

Board footer

Powered by FluxBB