lib/net/extended_classes.rb
# returns a reverse DNS hostname or nil
returns a reverse DNS hostname or nil
returns a reverse DNS hostname or nil
def dig_ptr
    begin
      Resolv.new.getname(self.downcase)
    rescue Resolv::ResolvError
      nil
    end
  end
def dig_ptr begin Resolv . new . getname ( self . downcase ) rescue Resolv :: ResolvError nil end end
returns a reverse DNS hostname or nil
returns a reverse DNS hostname or nil