# IPからホスト名 逆引き(resolve)

# Ruby

Resolv.getname(ip)
require 'resolv'

begin
  host = Resolv.getname(ip)
rescue
  host = "-----"
end

[ 📩 ご意見 ]