- All right, next assignment is to set the host name
of your computer to examhost.example.local
and ensure that this name resolves
to your computer's primary IP address.
Let me show you.
We need hostnamectl, set host name examhost.example.local
and then we need to make sure that this name resolves
to the computer's primary IP address.
Primary IP address is 139 less bytes,
so I'm putting that in etc/hosts.
And a quick pink test.
And there you can see that it works.
The only thing, we don't see it on the prompt yet.
Does that matter?
No, not at all.
Because if you open a new shell,
then you can see that in the new shell,
we have the new host name.
The host name in the prompt is generated at the moment
if you open your shell and it's not updated in between.
So that's all.