LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   "getaddrinfo failed: Temporary failure in name resolution" (https://www.linuxquestions.org/questions/linux-networking-3/getaddrinfo-failed-temporary-failure-in-name-resolution-294061/)

SammyK 02-23-2005 05:36 PM

"getaddrinfo failed: Temporary failure in name resolution"
 
I'll admit right off that DNS stuff is my weakest area in computing...

With that said, I keep getting this error in PHP:

"Warning: getimagesize() [function.getimagesize]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution"

I know this has something to do with my DNS and is really not PHP's problem, but I just don't know where to look to trouble-shoot the problem. So far if I do a

host www.google.com

It resolves just fine, and if I do a

host www.siteonmybox.com

it resolves just fine as well. This error in PHP is the only place on my box where anything looks screwy with DNS.

Also, just in case you are wandering, I did restart apache (which means PHP too since it's loaded as a mod.)

Thanks so much for any help with this problem!
SammyK

sigsegv 02-23-2005 09:12 PM

Two things -- What does Apache think your box's name is, and is it able to resolve it.

Also, why is it doing a host lookup to get the size of an image? :)

SammyK 02-24-2005 07:06 PM

Thanks for the reply:

Do you mean what is the ServerName in the VirtualHost directive? or a global ServerName? I don't have a global ServerName present, so Apache should be calling the "gethostname" function to get the name which when I type "hostname" at the command prompt, I get the correct name, but it is still set correctly in the VertualHost directive... so I am still stuck.

Also, to answer your second question, I am accessing the image with a URL instead of an absolute path, so that's why it needs to resolve.

Thanks for any more help!
SammyK

SammyK 03-09-2005 11:43 AM

*BUMP*

Still trying to figure this one out... :(


All times are GMT -5. The time now is 02:52 PM.