0

I have two Linux devices, hostname1 and hostname2 both are on the same wifi network. Both can ping the outside internet checked with ping 8.8.8.8. However when I try to ping hostname2 from hostname1 like ping hostname2.local I get the error of "Name or service not known". However this has worked at times, it seems to not work randomly. Neither device is running a firewall as far as I can tell. What should I check to debug this issue?

2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Jul 18, 2022 at 18:55
  • 1
    Check your configuration regarding converting between hostname hostname2.local to IP ; Check whether this service is running when "Name or service not known" is thrown ; Check whether IP is correctly matching the hostname to Ping !
    – Prem
    Jul 18, 2022 at 19:06

1 Answer 1

1

I resolved my issue, the problem seems to be due to mDNS (Avahi) not working correctly. Following this answer seemed to do the trick: https://askubuntu.com/a/460449/790690

1
  • My Earlier Comment was Directing you towards this type of Issue !
    – Prem
    Jul 19, 2022 at 8:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .