# NamedConf parser - file /etc/named.conf¶

NamedConf parser the file named configuration file. Named is a name server used by BIND.

class insights.parsers.named_conf.NamedConf(context)[source]

Class for parsing the file /etc/named.conf, We use class NamedCheckConf to parse most of the named.conf configurations and class NamedConf to parse the include directives.

Note

Please refer to the super-class insights.parsers.named_checkconf:NamedCheckConf for more usage information.

includes

List of files in ‘include’ section.

Type

list

Raises

SkipException -- When content is empty or cannot be parsed.

Examples

>>> named_conf.includes
['/etc/crypto-policies/back-ends/bind.config']

parse_content`(content)[source]

This method must be implemented by classes based on this class.