From: matz@... (Yukihiro Matsumoto) Date: 2003-09-28T23:26:09+09:00 Subject: Re: TCPSocket.gethostbyname difficulties Hi, In message "TCPSocket.gethostbyname difficulties" on 03/09/26, "Nathaniel Talbott" writes: |I'm trying to use TCPSocket.gethostbyname to verify that a given domain |actually exists in DNS. For some reason, though, some domains fail to |resolve that resolve fine using other applications. For instance: | | irb(main):001:0> require 'socket' | => true | irb(main):002:0> TCPSocket.gethostbyname('noblepack.com') | SocketError: host not found | from (irb):2:in `gethostbyname' | from (irb):2 This works for me: ruby -r socket -e 'p TCPSocket.gethostbyname("noblepack.com")' ruby 1.8.0 (2003-09-27) [i686-linux] ["noblepack.com", [], 2, "205.178.141.161"] Could you tell us more info? matz.