jekil / hostmap

http://hostmap.lonerunners.net
73 stars 14 forks source link

cannot load such file -- net/dns (LoadError) #3

Open 2IRG-FB opened 7 years ago

2IRG-FB commented 7 years ago

Hi, After the installation of Rubyinstaller and the unzip of hostmap, when i digit "C:\hostmap>ruby hostmap.rb -h" i see the following error:

C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' : cannot load such file -- net/dns (LoadError) from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55 :inrequire' from C:/hostmap/lib/hostmap/network/dns.rb:1:in <top (required)>' from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55 :inrequire' from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55 :in require' from C:/hostmap/lib/hostmap/core.rb:8:in<top (required)>' from C:/hostmap/lib/hostmap/plugin_manager.rb:3:in load' from C:/hostmap/lib/hostmap/plugin_manager.rb:3:in<top (required)>' from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55 :in require' from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55 :inrequire' from C:/hostmap/lib/hostmap/core.rb:7:in <top (required)>' from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55 :inrequire' from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55 :in require' from C:/hostmap/lib/hostmap-cli/console.rb:4:in<top (required)>' from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55 :in require' from C:/Ruby23-x64/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55 :inrequire' from hostmap.rb:8:in `

'

So I don't know what to do... can someone help me? Thnx very much.

AndreasBaumgart commented 6 years ago

Try this: gem install net-dns

2IRG-FB commented 6 years ago

Hi Andreas, The installation was successfull:

C:\Users\ae90693>gem install net-dns Successfully installed net-dns-0.8.0 Parsing documentation for net-dns-0.8.0 Done installing documentation for net-dns after 2 seconds 1 gem installed

But I still receive this error:

C:\Users\ae90693>hostmap -t 10.79.225.1 hostmap 0.3 codename development Coded by Alessandro jekil Tanasi alessandro@tanasi.it

Unhandled exception. Please report this bug sending an email to alessandro@tanas i.it attaching the following text: Message: Invalid domain name ["2irg.local", "localdomain"] Inspection:

<ArgumentError: Invalid domain name ["2irg.local", "localdomain"]>

Backtrace of the exception: C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-dns-0.8.0/lib/net/dns/resolver.rb:1227:in valid?' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-dns-0.8.0/lib/net/dns/resolver.rb:387:indomain=' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-dns-0.8.0/lib/net/dns/resolver.rb:1065:in parse_config_file' C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/net-dns-0.8.0/lib/net/dns/resolver.rb:263:ininitialize' C:/hostmap/lib/hostmap/network/dns.rb:12:in new' C:/hostmap/lib/hostmap/network/dns.rb:12:inconfigure' C:/hostmap/lib/hostmap/core.rb:52:in initialize' C:/hostmap/lib/hostmap-cli/console.rb:50:innew' C:/hostmap/lib/hostmap-cli/console.rb:50:in run' C:/hostmap/hostmap.rb:17:in

'

I did never put “2irg.local” on some files… I only added my DNS to “hostmap.conf” file:

DNS servers

#

DNS server used for the discovery (instead of defaults). Provide a comma separated list.

Example: 192.168.0.1, 192.168.0.2

dns: 10.79.225.1, 10.79.186.136

Can you help me with this issue? Thank you very much!

Francesco

Da: Andreas Baumgart [mailto:notifications@github.com] Inviato: mercoledì 7 febbraio 2018 22:11 A: jekil/hostmap hostmap@noreply.github.com Cc: Bonanno Francesco (2i Rete Gas SpA) Francesco.Bonanno@2iretegas.it; Author author@noreply.github.com Oggetto: Re: [jekil/hostmap] cannot load such file -- net/dns (LoadError) (#3)

Try this: gem install net-dns

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jekil/hostmap/issues/3#issuecomment-363911768, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AbbGvzqeRS1xuLR7yPpJIFzTeYsvuSIQks5tShFMgaJpZM4NdwHy.

Le informazioni contenute nella presente email ed ogni suo allegato sono da ritenersi riservati e, comunque, destinate esclusivamente alla persona o all'ente sopraindicati. La diffusione, distribuzione o copia di questa email da parte di qualsiasi soggetto diverso dal destinatario è proibita. Se avete ricevuto questo messaggio per errore, Vi preghiamo di contattarci immediatamente e cancellare il messaggio dai vostri sistemi. Grazie.

The information included in this email and any files transmitted with are confidential and intended solely for the use of the individual or entity to whom they are addressed. Dissemination, distribution or copy of this e-mail by any person not in address is strictly prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. Thank you.

AndreasBaumgart commented 6 years ago

Sorry, can't help you with that. I'm not affiliated with the hostmap project. I just stumbled upon your comment regarding net/dns by coincidence. Perhaps @jekil can help.