I would like to add the ddns of domindiscount24 to the ddns service.
As a test run I tried to add it myself to the ddns/providers.py
It popped up in the WebUI, and I could save my new entry, also it turned green, so I’m guessing its OK.
now how do I submit the code?
class DDNSProviderKEYSYSTEMS(DDNSProvider):
handle = "dynamicdns.key-systems.net"
name = "dynamicdns.key-systems.net"
website = "https://domaindiscount24.com/"
protocols = ("ipv4",)
# There are only information provided by the domaindiscount24 how to
# perform an update with HTTP APIs
# https://www.domaindiscount24.com/faq/dynamic-dns
url = "https://dynamicdns.key-systems.net/update.php"
can_remove_records = False
def update_protocol(self, proto):
data = {
"hostname" : self.hostname,
"password " : self.password,
"ip" : "auto",
}
# Send update to the server.
response = self.send_request(self.url, data=data)
# Handle success messages.
if response.code == 200:
return
# If we got here, some other update error happened.
raise DDNSUpdateError