1 00:00:06,750 --> 00:00:08,940 - All right, next assignment is to set the host name 2 00:00:08,940 --> 00:00:12,510 of your computer to examhost.example.local 3 00:00:12,510 --> 00:00:14,190 and ensure that this name resolves 4 00:00:14,190 --> 00:00:16,473 to your computer's primary IP address. 5 00:00:17,370 --> 00:00:18,203 Let me show you. 6 00:00:20,959 --> 00:00:25,857 We need hostnamectl, set host name examhost.example.local 7 00:00:30,570 --> 00:00:33,870 and then we need to make sure that this name resolves 8 00:00:33,870 --> 00:00:36,420 to the computer's primary IP address. 9 00:00:36,420 --> 00:00:39,150 Primary IP address is 139 less bytes, 10 00:00:39,150 --> 00:00:41,793 so I'm putting that in etc/hosts. 11 00:00:56,250 --> 00:00:57,783 And a quick pink test. 12 00:01:02,700 --> 00:01:04,920 And there you can see that it works. 13 00:01:04,920 --> 00:01:07,410 The only thing, we don't see it on the prompt yet. 14 00:01:07,410 --> 00:01:08,243 Does that matter? 15 00:01:08,243 --> 00:01:09,300 No, not at all. 16 00:01:09,300 --> 00:01:11,283 Because if you open a new shell, 17 00:01:12,390 --> 00:01:14,670 then you can see that in the new shell, 18 00:01:14,670 --> 00:01:16,680 we have the new host name. 19 00:01:16,680 --> 00:01:19,740 The host name in the prompt is generated at the moment 20 00:01:19,740 --> 00:01:23,580 if you open your shell and it's not updated in between. 21 00:01:23,580 --> 00:01:24,723 So that's all.