LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-23-2005, 05:36 PM   #1
SammyK
LQ Newbie
 
Registered: Aug 2003
Posts: 24

Rep: Reputation: 15
"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
 
Old 02-23-2005, 09:12 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
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?
 
Old 02-24-2005, 07:06 PM   #3
SammyK
LQ Newbie
 
Registered: Aug 2003
Posts: 24

Original Poster
Rep: Reputation: 15
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
 
Old 03-09-2005, 11:43 AM   #4
SammyK
LQ Newbie
 
Registered: Aug 2003
Posts: 24

Original Poster
Rep: Reputation: 15
*BUMP*

Still trying to figure this one out...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 2: Screen Resolution can not change from "800X600" to "1024X 768" suhaimi_sj Fedora - Installation 18 12-17-2009 03:29 AM
Telnet : Temporary failure in name resolution : Host name lookup failure koodoo Linux - Newbie 10 02-11-2008 07:59 PM
Please help on "Mplayer plugin" failed when using "Make" Blue Jacket Linux - Software 9 10-20-2005 02:29 AM
Temporary Failure in Name Resolution ewto Linux - General 2 07-15-2005 01:28 PM
does failed using urpmi messed up my "Install Software" / "mandrake update" ??? sirpelidor Mandriva 1 11-02-2003 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration