NXDomain Errors Installing Gems

michael.serafin's Avatar


03 Jun, 2020 02:47 PM

Ruby Version - 2.5.1p57

I was trying to install the fluent-plugin-prometheus gem when I received some NXDOMAIN errors while it was gathering dependencies.
I gathered the full output below

user@server:~$ /opt/td-agent/embedded/bin# /opt/td-agent/embedded/bin/gem install --debug --backtrace --verbose fluent-plugin-prometheus
NOTE:  Debugging mode prints all exceptions even when rescued
Exception `LoadError' at /opt/td-agent/embedded/lib/ruby/2.4.0/resolv.rb:171 - LoadError
HEAD https://api.rubygems.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=fluent-plugin-prometheus
200 OK
Exception `Resolv::DNS::Config::NXDomain' at /opt/td-agent/embedded/lib/ruby/2.4.0/resolv.rb:547 - _rubygems._tcp.api.rubygems.org
Exception `Resolv::DNS::Config::NXDomain' at /opt/td-agent/embedded/lib/ruby/2.4.0/resolv.rb:547 - _rubygems._tcp.api.rubygems.org.infra.seedcx.net
Exception `Resolv::ResolvError' at /opt/td-agent/embedded/lib/ruby/2.4.0/resolv.rb:492 - DNS result has no information for _rubygems._tcp.api.rubygems.org
Getting SRV record failed: DNS result has no information for _rubygems._tcp.api.rubygems.org

Additionally although this may be redundant, but this is dig output from my home workstatation as to test out of our infrastructure as well.

dig @ _rubygems._tcp.api.rubygems.org SRV
; <<>> DiG 9.14.12 <<>> @ _rubygems._tcp.api.rubygems.org SRV
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 15986
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;_rubygems._tcp.api.rubygems.org. IN    SRV
;; Query time: 0 msec
;; WHEN: Tue Jun 02 16:14:49 DST 2020
;; MSG SIZE  rcvd: 49
  1. Support Staff 1 Posted by David Radcliffe on 03 Jun, 2020 03:28 PM

    David Radcliffe's Avatar

    This is actually intentional. The gem client attempts to lookup a SRV record first and has a fallback record to use if the SRV is not present. This allows us to redirect traffic using DNS on the fly if needed, though we don't normally do that. This shouldn't impact anything.

  2. David Radcliffe closed this discussion on 03 Jun, 2020 03:28 PM.

  3. michael.serafin re-opened this discussion on 03 Jun, 2020 03:54 PM

  4. 2 Posted by michael.serafin on 03 Jun, 2020 03:54 PM

    michael.serafin's Avatar

    Ah I understand - thank your for the speedy reply!

  5. David Radcliffe closed this discussion on 03 Jun, 2020 04:09 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac