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