Method: Ipdb::Location#hostname

Defined in:
lib/ipdb/location.rb

#hostnameString

Return the Location hostname.

Returns:

  • (String)

    hostname



50
51
52
53
54
55
56
# File 'lib/ipdb/location.rb', line 50

def hostname
  Timeout::timeout(@timeout) do
    @hostname = Resolv.getname(address)
  end
rescue Timeout::Error
rescue
end