By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,165 Members | 894 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,165 IT Pros & Developers. It's quick & easy.

gethostbyaddr returns IP

P: n/a
What reasons are there for the following returning the IP address
instead of the hostname?

gethostbyaddr($_SERVER['REMOTE_ADDR'])

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Sun, 05 Dec 2004 15:22:41 -0600, "O.B." <fu******@bellsouth.net>
wrote:
What reasons are there for the following returning the IP address
instead of the hostname?

gethostbyaddr($_SERVER['REMOTE_ADDR'])


The most common reason is that there's no reverse DNS entry for the
IP. The second most commone would be a misconfiguration on your end
disallowing lookups.
--
gburnore@databasix dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ۳ݳ޳ݳۺݳ޳ݳݳ޳ݳ۳
| ۳ݳ޳ݳۺݳ޳ݳݳ޳ݳ۳
DataBasix | ۳ݳ޳ݳۺݳ޳ݳݳ޳ݳ۳
| ۳ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ۳
Black Helicopter Repair Svcs Division | Official Proof of Purchase
================================================== =========================
Want one? GET one! http://signup.databasix.com
================================================== =========================
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.