Skip to content
instance method

BasicSocket#do_not_reverse_lookup

() -> bool
basicsocket.do_not_reverse_lookup => true or false

Gets the do_not_reverse_lookup flag of basicsocket.

Example
require 'socket'

BasicSocket.do_not_reverse_lookup = false
TCPSocket.open("www.ruby-lang.org", 80) {|sock|
  p sock.do_not_reverse_lookup      #=> false
}
BasicSocket.do_not_reverse_lookup = true
TCPSocket.open("www.ruby-lang.org", 80) {|sock|
  p sock.do_not_reverse_lookup      #=> true
}