Skip to content

Instantly share code, notes, and snippets.

@blackpioter
Created September 18, 2014 08:12
Show Gist options
  • Save blackpioter/ba356032d44f2d0b75ba to your computer and use it in GitHub Desktop.
Save blackpioter/ba356032d44f2d0b75ba to your computer and use it in GitHub Desktop.
DNS Make rev-PTR from A records
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