Skip to content

Instantly share code, notes, and snippets.

@rohan-molloy
Created January 14, 2018 14:47
Show Gist options
  • Save rohan-molloy/4792a8e6dc306c6ab4983000d01d3a79 to your computer and use it in GitHub Desktop.
Save rohan-molloy/4792a8e6dc306c6ab4983000d01d3a79 to your computer and use it in GitHub Desktop.
awk {'print "local-data: \""$2" IN A "$1"\nlocal-data ptr: \""$1" "$2"\""}' <(grep -v ^# /etc/hosts | grep -v localhost) | grep -v 'local-data: " IN A ' | grep -v 'local-data ptr: " "
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment