Skip to content

Instantly share code, notes, and snippets.

@buzzkillb
Last active February 10, 2021 01:20
Show Gist options
  • Save buzzkillb/aaece49f675e4aeea85709dce2eb4924 to your computer and use it in GitHub Desktop.
Save buzzkillb/aaece49f675e4aeea85709dce2eb4924 to your computer and use it in GitHub Desktop.
ddns_update_data_denarius.py
from denariusrpc.authproxy import AuthServiceProxy, JSONRPCException
#DDNS to update data
ddns_update_name = 'api:python_example'
ddns_update_value = 'example value update'
ddns_update_expiration = 9999
# rpc_user and rpc_password are set in the denarius.conf file
rpc_connection = AuthServiceProxy("http://%s:%[email protected]:32369"%("rpcusername", "rpcpassword"))
name_update = rpc_connection.name_update(ddns_update_name, ddns_update_value, ddns_update_expiration)
print(name_update)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment