this post was submitted on 23 Aug 2023
71 points (89.9% liked)

Self Hosted - Self-hosting your services.

11401 readers
2 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules

Important

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

Cross-posting

If you see a rule-breaker please DM the mods!

founded 3 years ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 3 points 1 year ago (1 children)

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...

[โ€“] [email protected] 2 points 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.