Added possible URL parameters wildcard, mx, backmx and offline.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 5 Mar 2014 21:53:21 +0000 (22:53 +0100)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 5 Mar 2014 21:53:21 +0000 (22:53 +0100)
They are not used yet.

cgi-bin/dyndns.py

index f9919dd..b89cd39 100755 (executable)
@@ -22,10 +22,17 @@ ZONE = '.dyn.colgarra.priv.at'
 
 fields = cgi.FieldStorage()
 
+# the following fields are supported by most dyndns providers
+# if a parameter is not provided, the .getvalue method returns None
 username = fields.getvalue('username')
 password = fields.getvalue('password')
 hostname = fields.getvalue('hostname')
 myip     = fields.getvalue('myip')
+wildcard = fields.getvalue('wildcard')
+mx       = fields.getvalue('mx')
+backmx   = fields.getvalue('backmx')
+offline  = fields.getvalue('offline')
+
 
 # Strip zone
 hostname = hostname.strip()