mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-15 09:46:11 +01:00
Removed unnecessary NS record
Removed unnecessary NS record hostmaster.topLevelDomain while creating website for that domain.
This commit is contained in:
@@ -72,17 +72,6 @@ class DNS:
|
|||||||
|
|
||||||
if zone.type == 'NATIVE':
|
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):
|
if os.path.exists(DNS.defaultNameServersPath):
|
||||||
defaultNS = open(DNS.defaultNameServersPath, 'r').readlines()
|
defaultNS = open(DNS.defaultNameServersPath, 'r').readlines()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user