top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can i find domain name for an IP address?

0 votes
337 views
How can i find domain name for an IP address?
posted Jun 30, 2014 by Amritpal Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

If you have an IP address then sometimes it will be useful to try to resolve the host domain name for that particular IP address.
There is a built in function that accepts the IP address and will find the host name.
In order to do this, code like the below will help:

<?php $ip = $REMOTE_ADDR;//capture IP $domain = GetHostByName($ip); ?>

answer Jul 1, 2014 by Rahul Mahajan
...