entry.py 269 B

123456789
  1. class entry:
  2. def __init__(self, domain, type='A', content='127.0.0.1'):
  3. self.domain = domain
  4. self.type = type
  5. self.content = content
  6. self.subdomains = list()
  7. def add_subdomain(self, entry):
  8. self.subdomains.append(entry)