from .cfg_app import PpCfgAppError, PpConfigApplication
-__version__ = '0.8.2'
+__version__ = '0.8.3'
LOG = logging.getLogger(__name__)
# =============================================================================
LOG.debug("Checking, whether {!r} is a not public zone.".format(domain))
tld = domain.split('.')[-1]
- if tld in ('intern', 'internal', 'local', 'localdomain'):
+ if tld in ('intern', 'internal', 'local', 'localdomain', 'lokal'):
LOG.debug("Zone {!r} has a local TLD {!r}.".format(domain, tld))
return True
+ zone_base = domain.split('.')[0]
+ if zone_base in ('intern', 'internal', 'local', 'localdomain', 'lokal'):
+ LOG.debug("Zone {!r} has a local base {!r}.".format(domain, tld))
+ return True
+
if tld != 'arpa':
if self.verbose > 2:
LOG.debug("Zone {!r} has a public TLD {!r}.".format(domain, tld))