Created
November 26, 2017 22:58
-
-
Save asimzeeshan/fe3bceefa6a08683f487515b2d5cc672 to your computer and use it in GitHub Desktop.
cPanel DNSOnly count DNS zones
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ############################################################ | |
| # Count Number of BIND Zone files | |
| ############################################################ | |
| cd /var/named | |
| echo -n 'Total Zones: ' | |
| ls -lh *.db | wc -l |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment