mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-26 08:20:45 +01:00
possible resolution of https://github.com/usmannasir/cyberpanel/issues/1124
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
import secrets
|
||||
import string
|
||||
|
||||
alphabet = string.ascii_letters + string.digits
|
||||
the_password = ''.join(secrets.choice(alphabet) for _ in range(14))
|
||||
print(the_password)
|
||||
@@ -633,6 +633,9 @@ class DNS:
|
||||
def createDNSRecord(zone, name, type, value, priority, ttl):
|
||||
try:
|
||||
|
||||
if Records.objects.filter(name=name, type=type).count() > 0:
|
||||
return
|
||||
|
||||
if zone.type == 'MASTER':
|
||||
getSOA = Records.objects.get(domainOwner=zone, type='SOA')
|
||||
soaContent = getSOA.content.split(' ')
|
||||
|
||||
Reference in New Issue
Block a user