java.net.UnknownHostException: vagrant-centos65.vagrantup.com: vagrant-centos65.vagrantup.com: Name or service not known

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

When kafka creates new consumers, it simply concatenate the name of your VM to generate the consumer id. So, your VM resolves localhost as the name of your VM, not whatever you had set. To solve, add kafka(or the name of VM) plus address to /etc/hosts

Solutions on the web

via qiita.com by Unknown author, 1 year ago
vagrant-centos65.vagrantup.com: vagrant-centos65.vagrantup.com: Name or service not known
via mathworks.com by Unknown author, 2 years ago
via Stack Overflow by noplay
, 2 years ago
kafka: kafka: Name or service not known
via Stack Overflow by Arasu
, 2 years ago
sys3: sys3: Name or service not known
via GitHub by sunshineo
, 9 months ago
mariadb-connect: mariadb-connect: Name or service not known
via Stack Overflow by fixitinthemix
, 2 years ago
**********: nodename nor servname provided, or not known
java.net.UnknownHostException: vagrant-centos65.vagrantup.com: vagrant-centos65.vagrantup.com: Name or service not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1473)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
5 times, 4 months ago
2 times, 5 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.