Skip to content

Instantly share code, notes, and snippets.

@lyndell
Created March 6, 2017 04:28
Show Gist options
  • Save lyndell/c318bb9614a17accb1729cc24983c54f to your computer and use it in GitHub Desktop.
Save lyndell/c318bb9614a17accb1729cc24983c54f to your computer and use it in GitHub Desktop.
Breakdown IPv6 reverse DNS strings
IPv6=$1
host ${IPv6} | awk '{ip = substr($1,1,31); ptr = substr($1,33); printf("Search for zone:\n%s\n\nAdd Name:\n%s\nWith the requested value\n", ptr, ip);}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment