Since I am not being allowed to edit my post, here's a new one:
After testing the script provided above, I did get the WhoIs data for www.redcross.org, but phpBB is still not loading it properly. I do not know what the provided script does that phpBB doesn't, but whatever it is, it makes it work.