idP tddlmZmZmZmZddlmZmZGddeZGddeeZ GddeeeZ y ) )Plugin RedHatPlugin DebianPlugin UbuntuPlugin)joinnormpathc2eZdZdZdZdZdZeZdZdZ dZ y) NamedzBIND named servernamed)systemservicesnetwork/etc/named.confc >|jddg|jD]{}|j|s|j||j|g|j t |j|dt |j|dg}y)Nz/etc/default/bindz/var/log/named*.logz chroot/devz chroot/proc) add_copy_spec config_files path_exists get_dns_diradd_forbidden_pathr)selfcfgs :/usr/lib/python3/dist-packages/sos/report/plugins/named.pysetupz Named.setups   !  $$ C$""$$S)$''))#. =))#. >) cH|jd|}|rt|dSy)z3 grab directory path from named{conf,boot} zdirectory\s+\"(.*)\"r)do_regex_find_allr)r config_filedirectory_lists rrzNamed.get_dns_dir&s0//0G0;= N1-. .rcFd}d}|j|j||y)Nz(\s*arg \"password )[^\"]*z\1******) do_file_sub named_conf)rmatchsubsts rpostproczNamed.postproc0s"- %7rN) __name__ __module__ __qualname__ short_desc plugin_nameprofilesr"rrrr%rrr r s*$JK0H"JL 8rr c2eZdZdZdZedfZdZfdZxZS) RedHatNamedr)rz/etc/named.boot/etc/sysconfig/named)bindctt| |jd|jd|j d|j dy)Nz /etc/named/r/zklist -ket /etc/named.keytabz/etc/named.keytab)superr.rradd_cmd_outputrr __class__s rrzRedHatNamed.setup>sN k4&( =) 12 :;  34r) r&r'r(r"rfilespackagesr __classcell__r5s@rr.r.6s)"J'L / 0EHrr.c4eZdZdZdZdZeddfZfdZxZS) DebianNamed)/etc/bind/named.conf)bind9r<z/etc/bind/named.conf.optionsz/etc/bind/named.conf.localcLtt| |jdy)Nz /etc/bind/)r2r;rrr4s rrzDebianNamed.setupPs! k4&( <(r) r&r'r(r6r7r"rrr8r9s@rr;r;Gs, %EH'J202Lrr;N) sos.report.pluginsrrrros.pathrrr r.r;r,rrrAs<PO"&8F&8R%" %| r