For some reason Heroku is complaining of not being able to establish a
TCP connection when I issue a DNS query w/ Dnsruby::Resolver but I'm
not sure how to debug it further. Any guidance would be really
appreciated.

If I try to manually establish the TCP connection to the nameserver in
question it seems to work just fine:

>> s = TCPSocket.open('68.87.78.182',53)
=> #<TCPSocket:0x2b63ab283db0>

But when I try to run a query against it ...

>> res = Dnsruby::Resolver.new({:nameserver => ["68.87.76.182"]})
=> #<Dnsruby::Resolver:0x2b63ab27d2a8
@single_resolvers=[#<Dnsruby::PacketSender:0x2b63ab277bc8
@udp_size=4096, @ignore_truncation=false, @use_tcp=false,
@recurse=true, @tsig=nil, @src_port=[0], @packet_timeout=10,
@server="68.87.76.182", @src_address="0.0.0.0", @dnssec=true,
@port=53, @no_tcp=false>], @udp_size=4096, @ignore_truncation=false,
@query_timeout=0, @use_tcp=false, @recurse=true, @do_validation=false,
@tsig=nil, @retry_times=4, @src_port=[0], @do_caching=true,
@single_res_mutex=#<Mutex:0x2b63ab27d230>, @packet_timeout=10,
@config=Config - nameservers : 68.87.76.182,  domain : ec2internal,
search : ec2.internal,  ndots : 1, @retry_delay=5, @dnssec=true,
@port=53, @src_address=nil, @no_tcp=false, @configured=true,
@resolver_ruby=nil>
>> ret = res.query("www.abc.com")
Errno::ECONNREFUSED: Connection refused - connect(2)
        /app/.bundle/gems/ruby/1.8/gems/dnsruby-1.52/lib/Dnsruby/
select_thread.rb:87:in `initialize'
        /app/.bundle/gems/ruby/1.8/gems/dnsruby-1.52/lib/Dnsruby/
select_thread.rb:87:in `new'
        /app/.bundle/gems/ruby/1.8/gems/dnsruby-1.52/lib/Dnsruby/
select_thread.rb:87:in `get_socket_pair'
        /app/.bundle/gems/ruby/1.8/gems/dnsruby-1.52/lib/Dnsruby/
select_thread.rb:60:in `initialize'

Thanks again for the help!

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to