Accessible | Mobile | Markup | Stylesheets

Content

Domain Name Lookup

Enter a hostname, eg google.com

Overview

This script (shown to the right) uses AJAX and PHP to provide a domain name lookup service. It is coded in a way which is fairly self-contained, meaning you can edit a line in each file and then just copy/paste some HTML where you want the lookup form to be on your page. Rather than try to explain it, I've just set up this page to act as a sample for the script. Try it and see!

Please remember that you need Javascript enabled in order to use the AJAX on which this technology relies. (See the footnote if you're desperate to use this script, but you don't have Javascript access.)

Note that the script is not guaranteed to be accurate; it can only see what your webserver sees. DNS changes can take a while to propogate, and it's entirely possible (even, likely!) that your webserver's DNS cache will contain bad entries at any given time, just as your home PC's will.

Download

You can download Lookup here: Lookup.zip (Platform-Independent). It is released under the terms of the GNU General Public License.

The zip archive for the lookup script contains markup files that are editable as well as directly runnable on any webserver that supports PHP. You will have to edit the files slightly in order to get them to work on your own webserver: please read the source files carefully and obey any instructions in the comments in order to set up the script for your hosting environment.

Footnote

If you've arrived at this page desperate for a domain name lookup service, but you don't have Javascript enabled, you can type this link in your browser's address bar: http://karlprof.com/payloads/Projects/Applications/lookup.php?q=hostname.here, with hostname.here replaced with a hostname of your choice. This accesses the script backend directly and should spit out either an error or an IP directly into your browser. In some browsers typing your desired hostname and then hitting Enter in order to force a classical form submit may also work.

Stretch