Ok I am looking into see if it is possible to get the DNS of a computer using PHP. I am aware that PHP allows for getting DNS info for a website or server but can it be done to cross reference a computers DNS somehow using $_SERVER[‘REMOTE_ADDR’] and other PHP functions.
Share
You can use
gethostbyaddrfor this:However, I must warn you that
$_SERVER['REMOTE_ADDR']can have a few forms; here are a few articles that talk about this value: