mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-11 07:46:10 +01:00
add dns records cloudflare
This commit is contained in:
@@ -419,6 +419,12 @@ class DNS:
|
||||
except:
|
||||
return 0
|
||||
|
||||
@staticmethod
|
||||
def createDNSRecordCloudFlare(cf, zone, name, type, value, priority, ttl):
|
||||
dns_record = {'name': name, 'type': type, 'content': value, 'ttl': ttl, 'priority': priority}
|
||||
r = cf.zones.dns_records.post(zone, data=dns_record)
|
||||
|
||||
|
||||
@staticmethod
|
||||
def createDNSRecord(zone, name, type, value, priority, ttl):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user