Added handling for root domains
This commit is contained in:
parent
05b4544331
commit
331f0c092c
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,10 @@ class DNSUpdater:
|
|||
names_replace = self.dns_replacements[dnstype]
|
||||
print(names_replace)
|
||||
for name in names_replace:
|
||||
fullname = f"{name}.{self.HOSTNAME}"
|
||||
if (name == "@"):
|
||||
fullname = self.HOSTNAME
|
||||
else:
|
||||
fullname = f"{name}.{self.HOSTNAME}"
|
||||
|
||||
for record in self.DNSRECORDS[dnstype]:
|
||||
if record['name'] == fullname:
|
||||
|
|
Loading…
Reference in a new issue