Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Errno:ECONNREFUSED - DNS query
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
craayzie  
View profile  
 More options Apr 4 2011, 12:04 pm
From: craayzie <flesh...@gmail.com>
Date: Mon, 4 Apr 2011 09:04:17 -0700 (PDT)
Local: Mon, Apr 4 2011 12:04 pm
Subject: Re: Errno:ECONNREFUSED - DNS query
very nice catch as well - but also works just fine on Heroku ..

>> puts `dig +tcp www.abc.com @8.8.8.8`

; <<>> DiG 9.6-ESV-R3 <<>> +tcp www.abc.com @8.8.8.8
;; global options: +cmd
;; Got answer:
...

On Apr 4, 8:58 am, kowsik <kow...@gmail.com> wrote:

> dig uses udp by default. But from your error, it appears that Dnsruby
> might be using tcp. Maybe try

> dig +tcpwww.abc....@8.8.8.8

> K.
> ---http://blitz.iohttp://twitter.com/pcapr

> On Mon, Apr 4, 2011 at 8:24 AM, craayzie <flesh...@gmail.com> wrote:
> > Thanks for replying Matt and good catch on the nameserver IP - it was
> > a typo. Unfortunately, I get the exact same connection error message
> > from Heroku when using an IP that dig has no problem connecting to
> > (e.g. Google's public DNS server 8.8.8.8):

> >>> res = Dnsruby::Resolver.new({:nameserver => "8.8.8.8"})
> > ...
> >>> ret = res.query('www.abc.com')
> > Errno::ECONNREFUSED: Connection refused - connect(2)

> >>> puts `digwww.abc....@8.8.8.8`

> > ; <<>> DiG 9.6-ESV-R3 <<>>www.abc....@8.8.8.8
> > ;; global options: +cmd
> > ;; Got answer:
> > ...

> > Any ideas?

> > On Apr 4, 5:50 am, Matthew Todd <matt...@matthewtodd.org> wrote:
> >> Hi, Craayzie --

> >> > >> res = Dnsruby::Resolver.new({:nameserver => ["68.87.76.182"]})
> >> > >> ret = res.query("www.abc.com")
> >> > Errno::ECONNREFUSED: Connection refused - connect(2)

> >> For what it's worth, I just tried running `dig` in a Heroku console.

> >> Querying the nameserver you mentioned didn't work:

> >>         >> puts `dig @68.87.78.182www.abc.com`

> >>         ; <<>> DiG 9.6-ESV-R3 <<>> @68.87.78.182www.abc.com
> >>         ; (1 server found)
> >>         ;; global options: +cmd
> >>         ;; connection timed out; no servers could be reached

> >>         => nil

> >> While querying Google's public DNS did:

> >>         >> puts `dig @8.8.8.8www.abc.com`

> >>         ; <<>> DiG 9.6-ESV-R3 <<>> @8.8.8.8www.abc.com
> >>         ; (1 server found)
> >>         ;; global options: +cmd
> >>         ;; Got answer:
> >>         ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33218
> >>         ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

> >>         ;; QUESTION SECTION:
> >>         ;www.abc.com.                   IN      A

> >>         ;; ANSWER SECTION:
> >>        www.abc.com.            248     IN      CNAME   abc.com.
> >>         abc.com.                248     IN      A       199.181.132.250

> >>         ;; Query time: 4 msec
> >>         ;; SERVER: 8.8.8.8#53(8.8.8.8)
> >>         ;; WHEN: Mon Apr  4 05:24:49 2011
> >>         ;; MSG SIZE  rcvd: 59

> >>         => nil

> >> Hope this gives you some kind of a lead,  -- Matthew

> >>  smime.p7s
> >> 4KViewDownload

> > --
> > 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+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/heroku?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.