gethostbyaddr returns IP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • O.B.

    gethostbyaddr returns IP

    What reasons are there for the following returning the IP address
    instead of the hostname?

    gethostbyaddr($ _SERVER['REMOTE_ADDR'])

  • Gary L. Burnore

    #2
    Re: gethostbyaddr returns IP

    On Sun, 05 Dec 2004 15:22:41 -0600, "O.B." <funkjunk@bells outh.net>
    wrote:
    [color=blue]
    >What reasons are there for the following returning the IP address
    >instead of the hostname?
    >
    >gethostbyaddr( $_SERVER['REMOTE_ADDR'])[/color]

    The most common reason is that there's no reverse DNS entry for the
    IP. The second most commone would be a misconfiguratio n on your end
    disallowing lookups.


    --
    gburnore@databa six 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
    =============== =============== =============== =============== ===============

    Comment

    Working...