SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict scoobasteve1982's Avatar
    Join Date
    Apr 2007
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    gethostbyaddr problems

    Hi there,

    I'm working on a local LAMP installation and was using the function built into PHP called gethostbyaddr(). I was successfully getting the machine name of the person accessing the script, however when I duplicated the server using a VMWare linux distribution (imaged the server) the function gethostbyaddr() seems to be failing and only returning the IP address that I originally supplied to the function. Is there any configurations that I'm not aware of to turn this ability on in Apache? I've looked in the httpd.conf files but don't see any difference there from the original server configuration. I'm not sure if there's a php.ini setting or something that I'm not aware of. Again, even after the server was "duplicated"/imaged, it still running locally, but no longer returns my machine name. I hope my description makes sense.

    Thanks!

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Is your firewall (or virtual firewall?) blocking the DNS lookups?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •