My main server is named Postulate (an idea that you assume for the sake of argument), my desktop is named Axiom (a proved postulate), and my backup server is named Corollary (an idea that follows from an axiom).

What are your computers named, and why?

  • ArtisinalBS@lemm.ee
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    Question:
    Let’s say I do give my computers a fancy name in /etc/hostname - what do I need to do in order to use the hostname while ssh?

    It’s not like I have a domain controller resolving the hostname back to an internal ip…

    • JuxtaposedJaguar@lemmy.mlOP
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      If you mean initiating connections from one computer on your local network to another, you need to install and enable avahi-daemon (or some other mDNS daemon) on the “fancy” one. Your router also needs to support and enable mDNS forwarding, but basically all of them do by default. Then just use your-hostname.local in place of the local IP address, and your computer will automatically resolve it using mDNS. It’s different than regular DNS, so it doesn’t need any special configuration to use it. And word to the wise: don’t use uppercase or special characters in your hostname.