Skip to content

Instantly share code, notes, and snippets.

@lyndell

lyndell/ptr6.sh

Created Mar 6, 2017
Embed
What would you like to do?
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