Author Topic: SMF on Dreamhost via ISP with no rDNS  (Read 289 times)

Offline taliesin3x3

  • Newbie
  • *
  • Posts: 1
SMF on Dreamhost via ISP with no rDNS
« on: November 11, 2009, 11:37:10 PM »
Here's one I figured out tonight and I hope it can help heal some heads which have been banging off walls.

A few of my forum users could not access the forum at all.  The initial page they visited errored out with a 500 SERVER ERROR.  Consulting the logs, I find out that the reason for the error is Premature end of script headers: index.php

It turns out that it is ISP based.  If your IP has no reverse DNS entry, the hostname lookup function in SMF takes too long.  Dreamhost must be pretty strict with their execution times, and they terminate the script before the (non-existent) reverse lookup finishes.

So - I disable the hostname lookup option in SMF's Server Options and all is good.

So, if any of your users don't have a reverse DNS entry, logins and such will potentially by very SLOWWWW...  and your web host is strict about execution times (like Dreamhost obviously is!) it could fail altogether.

I hope this helps someone, somewhere :)

Offline Arantor

  • Customizer
  • Simple Machines Super Hero
  • *
  • Posts: 19,412
  • Gender: Male
  • Through the fire and flames we carry on.
    • World of Thoughts
Re: SMF on Dreamhost via ISP with no rDNS
« Reply #1 on: November 16, 2009, 04:18:24 AM »
Thanks for posting, it's good to have such clarifications on things like this :)
Customizer, SMF Team
My mods [22]
Current to-do list
Developer of Atrinik

No unsolicited PMs, thank you.
Current project:
Writing an OpenSearch integration for SMF.

Quote
Telling me "it doesn't work" is like a blunt pencil: pointless.
Why doesn't it work? What do you expect it to do?

Offline Ho0ber

  • Newbie
  • *
  • Posts: 1
Re: SMF on Dreamhost via ISP with no rDNS
« Reply #2 on: November 19, 2009, 03:16:45 PM »
taliesin3x3, you are a godsend!

I had exactly this problem and was tearing my hear out! One and only one of my users had this problem, and I had come up with all kinds of crazy scenarios to explain it, but the server logs never lie!

For the record, I also am hosting on Dreamhost, and had exactly this issue for a user who had no reverse DNS.

Thanks so much!