Created
September 18, 2014 08:12
-
-
Save blackpioter/ba356032d44f2d0b75ba to your computer and use it in GitHub Desktop.
DNS Make rev-PTR from A records
This file contains 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
cat ZONEFILE| grep -v "@\|TTL\|Serial\|after\|;" | awk -F" " '{ if ($3 == "A") print $0 }' | awk '{print $4" IN PTR "$1".DOMAIN."}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment