note 103728 added to function.gethostbyaddr
| From: | contact at muluweb dot net | Date: | Fri, 29 Apr 2011 23:55:31 +0000 |
| Subject: | note 103728 added to function.gethostbyaddr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179294@lists.php.net to get a copy of this message | ||
If there are several host names for one IP address (many domain names can link to the same physical
computer/server), gethostbyaddr() will return a domain name AT RANDOM.
I'm surprised it hasn't been said before.
You can try and see by yourself.
On some shared hosting services, it will not give you any domain name that is registered to that
server (fortunately) but a general domain name referring to clusters.
Try it on your own server if it is referred by at least 2 domain names, if you have one.
----
Server IP: 69.147.83.197
Probable Submitter: 92.3.228.37
----
Manual Page -- http://www.php.net/manual/en/function.gethostbyaddr.php
Edit -- https://master.php.net/note/edit/103728
Del: integrated -- https://master.php.net/note/delete/103728/integrated
Del: useless -- https://master.php.net/note/delete/103728/useless
Del: bad code -- https://master.php.net/note/delete/103728/bad+code
Del: spam -- https://master.php.net/note/delete/103728/spam
Del: non-english -- https://master.php.net/note/delete/103728/non-english
Del: in docs -- https://master.php.net/note/delete/103728/in+docs
Del: other reasons-- https://master.php.net/note/delete/103728
Reject -- https://master.php.net/note/reject/103728
Search -- https://master.php.net/manage/user-notes.php