Difference between revisions of "Dig"

From Teknologisk videncenter
Jump to: navigation, search
m (New page: *dig -x 87.56.15.182 | grep PTR | grep -v -E '^;' | tr ' \t' ' '|cut -d' ' -f5 <pre> IPaddresses=$(cat /var/log/httpd-access.log | cut -d' ' -f1 | sort -u) for i in $IPaddresses; do di...)
 
m
 
Line 5: Line 5:
 
  for i in $IPaddresses; do dig -x $i | grep PTR | grep -v -E '^;' | tr ' \t' '  '|cut -d' ' -f5; done
 
  for i in $IPaddresses; do dig -x $i | grep PTR | grep -v -E '^;' | tr ' \t' '  '|cut -d' ' -f5; done
 
</pre>
 
</pre>
[[Category:UNIX]][[Category:Linux]]
+
[[Category:UNIX]][[Category:Linux]][[Category:Linux Command]]

Latest revision as of 06:58, 3 May 2012

  • dig -x 87.56.15.182 | grep PTR | grep -v -E '^;' | tr ' \t' ' '|cut -d' ' -f5
 IPaddresses=$(cat /var/log/httpd-access.log | cut -d' ' -f1 | sort -u)
 for i in $IPaddresses; do dig -x $i | grep PTR | grep -v -E '^;' | tr ' \t' '  '|cut -d' ' -f5; done