add checkip script and a client to update the IP
[dyn-nsupdate.git] / checkip
diff --git a/checkip b/checkip
new file mode 100755 (executable)
index 0000000..bc9b5bd
--- /dev/null
+++ b/checkip
@@ -0,0 +1,9 @@
+#!/usr/bin/python
+import os
+
+# print headers
+print "Content-Type: text/plain"
+print ""
+
+# print content
+print os.environ["REMOTE_ADDR"]