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
- No harassment
- crossposts from c/Open Source & c/docker & related may be allowed, depending on context
- Video Promoting is allowed if is within the topic.
- No spamming.
- Stay friendly.
- Follow the lemmy.ml instance rules.
- Tag your post. (Read under)
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!
- Lemmy doesn't have tags yet, so mark it with [Question], [Help], [Project], [Other], [Promoting] or other you may think is appropriate.
Cross-posting
- [email protected] is allowed!
- [email protected] is allowed!
- [email protected] is allowed!
- [email protected] is allowed if topic has to do with selfhosting.
- [email protected] is allowed!
If you see a rule-breaker please DM the mods!
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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...
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.