From 5b26412a166c9e88c251d8ba376317bbc3fe4fdb Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Wed, 5 Apr 2017 23:46:36 +0100 Subject: Initial commit --- dns.php | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 dns.php (limited to 'dns.php') diff --git a/dns.php b/dns.php new file mode 100644 index 0000000..2ac85d1 --- /dev/null +++ b/dns.php @@ -0,0 +1,41 @@ + "ssh-rsa")); + + if (ssh2_auth_pubkey_file($connection, "bladns.net", "/home/bladns.net/.ssh/id_rsa.pub", "/home/bladns.net/.ssh/id_rsa")) { + echo "Public Key Authentication Successful\n
\n
"; + } else { + echo "Public Key Authentication Failed\n
\n
"; + } + + echo "
";
+  $stream = ssh2_exec($connection, "ps aux | grep named");
+  stream_set_blocking($stream, true);
+  $stream_out = ssh2_fetch_stream($stream, SSH2_STREAM_STDIO);
+  echo stream_get_contents($stream_out);
+  echo "
"; +} else { +?> + + + + BlaDNS + + + +
+ Domain name:
+ Password:
+ +
+ + + -- cgit v1.2.3