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 `dig www.abc.com @8.8.8.8`

; <<>> DiG 9.6-ESV-R3 <<>> www.abc.com @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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to