Removed unnecessary NS record

Removed unnecessary NS record hostmaster.topLevelDomain while creating website for that domain.
This commit is contained in:
Istiak Ferdous
2019-12-29 14:51:40 +06:00
parent fb7efa5191
commit ac3344f56d

View File

@@ -72,17 +72,6 @@ class DNS:
if zone.type == 'NATIVE':
record = Records(domainOwner=zone,
domain_id=zone.id,
name=topLevelDomain,
type="NS",
content='hostmaster.%s' % (topLevelDomain),
ttl=3600,
prio=0,
disabled=0,
auth=1)
record.save()
if os.path.exists(DNS.defaultNameServersPath):
defaultNS = open(DNS.defaultNameServersPath, 'r').readlines()