summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-01-29 09:01:59 +0200
committerPaul Buetow <paul@buetow.org>2026-01-29 09:01:59 +0200
commitdd8d93ce4967f30fcff735d537b92c7a559b8f66 (patch)
tree0013df44ae05f0c523ed78d5d8c4d682089e53d6
parenta03d1bc9690e81edb508010237f848defc090751 (diff)
Rename README to README.md and convert to Markdown format. Remove redundant top-level index.pl file.
-rw-r--r--README7
-rw-r--r--README.md15
-rwxr-xr-xindex.pl80
3 files changed, 15 insertions, 87 deletions
diff --git a/README b/README
deleted file mode 100644
index aa67c4c..0000000
--- a/README
+++ /dev/null
@@ -1,7 +0,0 @@
-This is a quick and dirty perl based IPv6 test website.
-
-It needs the following hosts configured:
-
-ipv6.buetow.org (IPv4 and IPv6)
-test4.ipv6.buetow.org (IPv4 only)
-test6.ipv6.buetow.org (IPv6 only)
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..77120e6
--- /dev/null
+++ b/README.md
@@ -0,0 +1,15 @@
+# IPv6 Test Website
+
+This is a quick and dirty Perl-based IPv6 test website.
+
+## Running the Website
+
+The website can be run using the Docker image in the `docker-image` directory.
+
+## Required Hosts Configuration
+
+The website needs the following hosts configured:
+
+- `ipv6.buetow.org` (IPv4 and IPv6)
+- `test4.ipv6.buetow.org` (IPv4 only)
+- `test6.ipv6.buetow.org` (IPv6 only)
diff --git a/index.pl b/index.pl
deleted file mode 100755
index 596a068..0000000
--- a/index.pl
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/usr/bin/perl
-
-# This is QUICK AND DIRTY!
-
-use strict;
-use warnings;
-
-print <<END;
-Content-type: text/html
-
-<html>
-<head>
-<title>The Ultimate IPv6 Test Site</title>
-</head>
-<body>
-
-Congratulations, you have connected to a server that will display your method of connection, either IPv6 (preferred) or IPv4 (old and crusty). Well IPv6 is already ~15 years old either but not as old as IPv4 ;)
-<br /><br />
-Nevertheless, please choose your destiny:
-<ul>
- <li><a href="http://ipv6.buetow.org">ipv6.buetow.org</a> for IPv6 & IPv4 Test</li>
- <li><a href="http://test4.ipv6.buetow.org">test4.ipv6.buetow.org</a> for IPv4 Only Test</li>
- <li><a href="http://test6.ipv6.buetow.org">test6.ipv6.buetow.org</a> for IPv6 Only Test</li>
-</ul>
-If your browser times-out when trying to connect to this server then you do not have an IPv6 or IPv4 path (depends on which test you are running) to the server. If your browser returns an error that the host cannot be found then the DNS servers you are using are unable to resolve the AAAA or A DNS record (depends on which test you are running again) for the server. If your browser is able to connect to the "IPv6 Only Test", yet using the "IPv6 & IPv4 Test" returns a page stating you are using IPv4, then your browser and/or IP stack in your machine are preferring IPv4 over IPv6. It also might be that your operating system supports IPv6 but your web-browser doesn't.
-END
-
-if ($ENV{SERVER_NAME} eq 'ipv6.buetow.org') {
- print "<h3>IPv6 & IPv4 Test Results:</h3>\n";
-
-} elsif ($ENV{SERVER_NAME} eq 'test6.ipv6.buetow.org') {
- print "<h3>IPv6 Only Test Results:</h3>\n";
-
-} elsif ($ENV{SERVER_NAME} eq 'test4.ipv6.buetow.org') {
- print "<h3>IPv4 Only Test Results:</h3>\n";
-}
-
-print "<pre>You are using <b>" . do {
- if ($ENV{REMOTE_ADDR} =~ /(?:\d+\.){3}\d/) {
- 'IPv4'
- } else {
- 'IPv6'
- }
-} . "</b>\n";
-
-
-chomp (my $remote = `host $ENV{REMOTE_ADDR}`);
-chomp (my $server = `host $ENV{SERVER_ADDR}`);
-chomp (my $server0 = `host $ENV{SERVER_NAME}`);
-chomp (my $digremote = `dig -x $ENV{REMOTE_ADDR}`);
-chomp (my $digserver = `dig -x $ENV{SERVER_ADDR}`);
-chomp (my $digserver0 = `dig -t any $ENV{SERVER_NAME}`);
-
-print <<END;
-Client address: $ENV{REMOTE_ADDR}
-Server address: $ENV{SERVER_ADDR}
-
-<b>Client address reverse DNS lookup:</b>
-$remote
-
-<b>Server address reverse DNS lookup:</b>
-$server
-
-<b>Server hostname DNS lookup:</b>
-$server0
-
-<b>Advanced client address reverse DNS lookup:</b>
-$digremote
-
-<b>Advanced server address reverse DNS lookup:</b>
-$digserver
-
-<b>Advanced server hostname DNS lookup:</b>
-$digserver0
-</pre>
-<hr />
-Thanks for visiting, please recommend this test to your friends and colleagues. Any comments go to <a href="http://contact.buetow.org">Paul Buetow</a>.
-</body>
-</html>
-END