From: Dave Thomas Date: 2001-09-25T13:22:26+09:00 Subject: [ruby-talk:21655] Re: IPSocket#addr "Hal E. Fulton" writes: > u = UDPSocket.new > u.bind('localhost', 8765) > u.addr � ["AF_INET", 8765, "localhost", "127.0.0.1"] > BasicSocket.do_not_reverse_lookup = true > u.addr � ["AF_INET", 8765, "127.0.0.1", "127.0.0.1"] > > This is under IPSocket (from which TCPSocket inherits). > > Problem is, it always seems to give me an address, not > a name. Is 127.0.0.1 in your DNS? What does dig -x 127.0.0.1 do? Dave