diff --git a/index.php b/index.php
index 935c9cf..da00287 100644
--- a/index.php
+++ b/index.php
@@ -145,7 +145,7 @@ function show_dnsrecords($hostname) {
echo "" . $value['rname'] . " (rname), ";
echo "" . $value['serial'] . " (serial)
\n";
}
-
+
// OTHER
$dnsrecords = dnsrecords($hostname, "OTHER");
if(!empty($dnsrecords)) {
@@ -178,8 +178,8 @@ function print_footer() {
// HELPER FUNCTIONS
function readheader($value) {
- echo "" . $value . ": "; // show desired value
- if(isset($_SERVER[$value])) { // only if desired header has been delivered
+ echo "" . $value . ": "; // show desired value
+ if(isset($_SERVER[$value])) { // only if desired header has been delivered
echo $_SERVER[$value];
}
echo "
\n";
@@ -189,6 +189,7 @@ function ip2hostname($ip) {
return $hostname;
}
function hostname2ip($hostname) {
+ echo gethostbynamel($hostname);
$ip = implode(', ', gethostbynamel($hostname));
return $ip;
}