you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 4 months ago* (4 children)

Humans shouldn’t really be typing in IPs. Why not just use localhost for localhost and dns / mdns for lan machines? It’s such a nicer experience.

mdns works with link-local in the case of a private non connected lan.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 5 points 4 months ago (3 children)

    Dns doesn't always work, and seeing if you can connect via IP is often a troubleshooting step

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 4 months ago (2 children)

    True. But pinging IPs directly should only be done as a debug step when dns / mdns does not work. Aka extremely rarely.This all being said mdns is extremely reliable on lan. It’s literally just multicast dns on lan.

    On my personal home network I have never had mdns fail in 5-ish years. FQDNs yah. DNS can break. But mdns has been solid.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 4 months ago (1 child)

    I would like to know more about this mdns.

    In my experience, the following are unreliable, and it's unclear which one is supposed to work under which context:

    • ping hostname
    • ping hostname.local
    • ping hostname.<whatever that local domain thing is called>

    While pinging the ipv4 address is reliable; if the device is reachable on the network, it should respond.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 4 months ago*

    Happy to help.

    You can find more information here: https://en.wikipedia.org/wiki/Multicast_DNS

    You can learn how to configure it here: https://wiki.archlinux.org/title/Avahi

    I see why some people can be confused though. In some distros it needs to be configured. Once you configure it though it should be rock solid.

    There is no reason why an ICMP packet would be more robust than a multicast udp packet.

    The traditional nomenclature is myhostname.local

    Just make sure that the system firewall is configured to allow mdns. That’s the biggest issue. Once you have e that and you have mdns set up it’s good to go.

  • source
  • parent