Closed Townie-au closed 2 years ago
it does not keep the previous setting in DNS Server.
Related #115
you can help modified those lines https://github.com/NewFuture/DDNS/blob/9cfdc14fbb07aeb020a255c370b93e3e0a026c6e/dns/cloudflare.py#L139-L140
to (keep the proxied value))
res = request('PUT', '/' + zoneid + '/dns_records/' + record['id'],
type=record_type, content=value, name=domain, proxied=record['proxied'] ,ttl=Config.TTL)
-type=record_type, content=value, name=domain, ttl=Config.TTL)
+type=record_type, content=value, name=domain, proxied=record['proxied'] ,ttl=Config.TTL)
My cloud flare account was lost. Please help me test it.
If it works, please create a pull request.
you can help modified those lines
to (keep the proxied value))
res = request('PUT', '/' + zoneid + '/dns_records/' + record['id'], type=record_type, content=value, name=domain, proxied=record['proxied'] ,ttl=Config.TTL)
-type=record_type, content=value, name=domain, ttl=Config.TTL) +type=record_type, content=value, name=domain, proxied=record['proxied'] ,ttl=Config.TTL)
My cloud flare account was lost. Please help me test it.
If it works, please create a pull request.
I'll give it a go
you can help modified those lines
to (keep the proxied value))
res = request('PUT', '/' + zoneid + '/dns_records/' + record['id'], type=record_type, content=value, name=domain, proxied=record['proxied'] ,ttl=Config.TTL)
-type=record_type, content=value, name=domain, ttl=Config.TTL) +type=record_type, content=value, name=domain, proxied=record['proxied'] ,ttl=Config.TTL)
My cloud flare account was lost. Please help me test it.
If it works, please create a pull request.
It works! I also had to run this command sudo ln -s /usr/bin/python3.7 /usr/bin/python for the script to successfully run. I dont know how to do a pull request but Im trying to learn now.
@Townie-au
Hi Running the script changes zone to DNS Only after updating. config.json proxy is null