Last active
July 6, 2023 01:00
-
-
Save metalefty/e9124892678499399e0277a029ce6f2e to your computer and use it in GitHub Desktop.
nginxやApacheのログのIPアドレスを逆引きするワンライナー
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby -rresolv -ane 'puts "#{(Resolv.getname($F[0]) rescue $F[0])} #{$F[1..-1].join(" ")}"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment