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.182 www.abc.com`

        ; <<>> DiG 9.6-ESV-R3 <<>> @68.87.78.182 www.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.8 www.abc.com`

        ; <<>> DiG 9.6-ESV-R3 <<>> @8.8.8.8 www.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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to