Enter your search terms
Submit search form
my-Tool.com: Networking - Investigates various networking tasks. - IP - Hostname
IP Address
MaximaPHP
Regexp Tester
Mathematics
String and Text
Word Domain
Games
Code Tester
Internet Codes
Networking
Date and Time
Be Wise Bitwise
Ranqueen
Q & A
About me
Forum
Open Source Facts
AdManner Free
Classified Ads
Indonesian
Japanese
IP - Hostname
WHOIS
DNS
IP - Country
IP - Long
IP - Hostname
Converts between IP address and hostname.
Enter IP address or hostname:
eg. 59.106.32.5, www.my-tool.com
Most of the visitors who used this tool also used
WHOIS
(23.4%),
ワードドメイン
(13.0%),
IP - Negara
(9.3%)
Source code of this tool is:
<?php /****************************************************************** * * IPHostname, Converts between IP address and hostname. * Copyright (C) 2006, Bowo Prasetyo * * http://www.my-tool.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation below, * * http://www.gnu.org/licenses/gpl.html#TOC1 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * *****************************************************************/ unset($query); if (isset($_POST['query'])) $query = trim($_POST['query']); else if(isset($_GET['query'])) $query = trim($_GET['query']); ?> Enter IP address or hostname: <form method="POST" action=""><input type="text" name="query" value="<?php echo $query ?>"><input type="submit"><br><span class="eg">eg. 59.106.32.5, www.my-tool.com</span></form> <br><br> <?php if (isset($query)) { echo $query.' --> '; if (preg_match('/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/', $query)==1) { echo gethostbyaddr($query).'<br><br>'; } else { if (($hosts = gethostbynamel($query))!==FALSE) { foreach ($hosts as $ip) echo $ip.', '; echo '<br><br>'; } } } ?>
©2006 my-Tool.com