top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How can i find domain name for an IP address?

0 votes
41 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...