Forked from buzzkillb/ddns_update_data_denarius.py
Created
February 10, 2021 01:20
-
-
Save metaspartan/b716d98310b7bc9a9b86098e45fa791d to your computer and use it in GitHub Desktop.
ddns_update_data_denarius.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:%s@127.0.0.1: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