SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict scoobasteve1982's Avatar
    Join Date
    Apr 2007
    0 Post(s)
    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.


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


Posting Permissions

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