Answer the question
In order to leave comments, you need to log in
Content-type must be application/json. cloudflare?
headers={'X-Auth-Key': cloud[3],'X-Auth-Email': cloud[1], "Content-Type": "application/json"}
data = {"type":"A","name":domain[2],"content":ip[0],"ttl":3600,"priority":10,"proxied":False}
requests.post(f"https://api.cloudflare.com/client/v4/zones/{domain[9]}/dns_records", headers=headers, data=data).json()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question