This commit is contained in:
usmannasir
2023-09-24 14:01:05 +04:00
parent 7972d16559
commit d87a8d8b99
2 changed files with 3 additions and 6 deletions

View File

@@ -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)

View File

@@ -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(' ')