Created
February 15, 2011 17:08
-
-
Save 0x46616c6b/827822 to your computer and use it in GitHub Desktop.
Checks ServerNames from apaches vhost and checks the dns a record
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/sh | |
HOSTNAMES=`mktemp -p /tmp/` | |
grep -h "ServerName" /etc/apache2/sites-enabled/*|uniq|cut -d " " -f3 > $HOSTNAMES | |
dig -f $HOSTNAMES A +noall +answer | |
rm $HOSTNAMES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment