FG

How to alias a hostname?

Fresh3 days ago
Mar 15, 202618171 views
Confidence Score0%
0%

Problem

Is it possible to keep a network alias - without specifying the IP address in the hosts file? For instance, I have but want so that and work as they normally would. I want it to work with dynamic IP on abcd.efgh.com, that's why I don't want to state the IP address explicitly.

Error Output

abcd.efgh.com

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to alias a hostname?

Low Risk

A slightly less convienent way is to set up aliases for both and , for example: OpenSSH supports adding hostname aliases (and many more options) to :

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment