1
00:00:04,390 --> 00:00:10,360
Now you know how to get information about IP address mask hostname of the Linux computer.

2
00:00:10,360 --> 00:00:16,480
For that you could use multiple commands such as hostname, IP address and ifconfig.

3
00:00:16,600 --> 00:00:23,500
Now let's use another command like ping traceroute and nslookup and actually we have already used before

4
00:00:23,500 --> 00:00:29,410
pink command and with pink command you could verify connectivity with remote servers and you could use

5
00:00:29,410 --> 00:00:34,150
either hostname or IP address of the remote server as argument.

6
00:00:34,180 --> 00:00:42,400
Let's ping google.com and you'll see actual response from IP address of the google.com server.

7
00:00:42,400 --> 00:00:49,140
And if I enter ping and use same IP address as was used in this response, let me copy it and paste

8
00:00:49,150 --> 00:00:49,630
here.

9
00:00:49,630 --> 00:00:56,770
I'll get actually same response and the reason for that that in networking first we resolve host name

10
00:00:56,770 --> 00:01:01,000
to IP address and then we connect to specific IP address.

11
00:01:01,000 --> 00:01:04,810
And that's why here in those responses you see IP address.

12
00:01:04,810 --> 00:01:10,900
But now question how this Linux computer actually received IP address for Google.com.

13
00:01:10,900 --> 00:01:11,860
Host name.

14
00:01:12,070 --> 00:01:20,500
It has actually performed DNS server lookup and you could perform DNS lookup manually using Nslookup

15
00:01:20,500 --> 00:01:21,040
command.

16
00:01:21,040 --> 00:01:29,110
And here enter for example again google.com and you'll see answer from the DNS server and DNS server

17
00:01:29,110 --> 00:01:36,280
for this particular Docker container is here and here is port that is used for DNS lookups.

18
00:01:36,280 --> 00:01:41,620
It is UDP port and here is actual response from the DNS server.

19
00:01:41,620 --> 00:01:47,200
And in this block you see actually IP version six IP address for Google.com.

20
00:01:47,200 --> 00:01:48,250
Here it is.

21
00:01:48,490 --> 00:01:52,360
And here you see IP version for IP address.

22
00:01:52,390 --> 00:01:53,320
Here it is.

23
00:01:53,350 --> 00:01:59,980
It is of course, public IP address because Google.com servers are located in public domain.

24
00:02:00,070 --> 00:02:00,730
All right.

25
00:02:00,730 --> 00:02:08,810
Let's now perform one more lookup and let's look up for IP address of the let's say instagram.com.

26
00:02:09,139 --> 00:02:18,200
And here I see bunch of different IP addresses here is set of IP version six IP addresses and I could

27
00:02:18,200 --> 00:02:26,420
use actually any of them and above before this section I see again set of different IP addresses that

28
00:02:26,420 --> 00:02:29,210
were resolved for instagram.com.

29
00:02:29,210 --> 00:02:29,960
Hostname.

30
00:02:29,960 --> 00:02:37,130
Here is this long set of different IP addresses and that means that Instagram uses some sort of load

31
00:02:37,130 --> 00:02:43,760
balancing and we are actually able to connect to any of those IP addresses if we want to reach Instagram.com

32
00:02:43,760 --> 00:02:44,510
server.

33
00:02:45,400 --> 00:02:54,520
And if I enter ping instagram.com, I'll get a response from one of the IP addresses from that list.

34
00:02:54,550 --> 00:02:58,750
Let's stop this output and let's actually search for this IP address.

35
00:02:58,750 --> 00:02:59,740
Let me copy it.

36
00:03:00,710 --> 00:03:04,220
Search and actually somewhere above.

37
00:03:04,250 --> 00:03:05,300
Yes, here it is.

38
00:03:05,330 --> 00:03:10,520
This address was resolved by DNS server and it is located in this list.

39
00:03:10,550 --> 00:03:11,330
All right.

40
00:03:11,330 --> 00:03:15,740
That's how computer actually resolves hostname to IP address.

41
00:03:15,740 --> 00:03:20,540
And that's how you could perform the same action manually using nslookup command.

42
00:03:21,020 --> 00:03:27,830
Next command, I want to show you here is trace road trace route and here as argument.

43
00:03:27,830 --> 00:03:30,560
Let's use google.com hostname.

44
00:03:30,560 --> 00:03:37,610
And here you see a bunch of IP addresses and actually bunch of different routers that appear on the

45
00:03:37,610 --> 00:03:41,660
way from this computer to Google.com server.

46
00:03:41,660 --> 00:03:46,130
And there are actually 11 different routers on this way.

47
00:03:46,130 --> 00:03:51,050
And for example, here you see private IP address here is also private IP address.

48
00:03:51,050 --> 00:03:52,880
Here is one more private IP address.

49
00:03:52,880 --> 00:03:55,400
And here you see some names.

50
00:03:55,430 --> 00:03:58,370
Next comes one of the public IP addresses.

51
00:03:58,400 --> 00:04:01,440
Next, one more hostname and so on.

52
00:04:01,440 --> 00:04:06,780
All those IP addresses starting from this one are actually public IP addresses.

53
00:04:06,780 --> 00:04:13,560
And that means that here, starting from this step, packets are traveling via public routers with public

54
00:04:13,560 --> 00:04:14,550
IP addresses.

55
00:04:14,580 --> 00:04:15,330
All right.

56
00:04:15,330 --> 00:04:21,450
That's how you could verify connectivity with remote servers using traceroute or pink commands.

57
00:04:21,480 --> 00:04:23,340
Let's clear the terminal and proceed.

58
00:04:23,430 --> 00:04:26,550
There is one more command I want to show you here on this lecture.

59
00:04:26,550 --> 00:04:29,340
And this command is who is with this command.

60
00:04:29,340 --> 00:04:33,200
You could get information about owner of specific domain.

61
00:04:33,210 --> 00:04:36,540
For example, let's whois facebook.com.

62
00:04:37,260 --> 00:04:37,910
Querying.

63
00:04:37,920 --> 00:04:43,110
And here is information that was retrieved from public registry databases.

64
00:04:43,110 --> 00:04:50,310
And for example, here you see name servers that are used by Facebook.com, a dot, facebook.com and

65
00:04:50,310 --> 00:04:50,860
so on.

66
00:04:50,880 --> 00:04:55,770
You see registrar that was used for registration of this domain.

67
00:04:55,800 --> 00:05:04,120
You see creation date of this record and it means that this hostname was created in 1997.

68
00:05:04,140 --> 00:05:07,540
Also on the next line, you see registry expiration date.

69
00:05:07,560 --> 00:05:09,780
It is set to 2028.

70
00:05:09,960 --> 00:05:11,580
Alright, let's perform.

71
00:05:11,610 --> 00:05:14,910
Same query for another host name who is.

72
00:05:14,940 --> 00:05:18,360
And here let's enter linked in.com.

73
00:05:18,930 --> 00:05:19,740
Querying.

74
00:05:20,160 --> 00:05:26,750
And here is the response for linkedin.com domain and information here is similar.

75
00:05:26,760 --> 00:05:33,990
Here you see set of name servers, domain status information about owner of this domain, information

76
00:05:33,990 --> 00:05:39,970
about registrar information about creation date and expiration date for this domain.

77
00:05:40,090 --> 00:05:45,250
Alright, that's all for this lecture where I have demonstrated you how to use such network utility

78
00:05:45,250 --> 00:05:52,270
commands as ping traceroute and nslookup in order to get IP addresses for a specific host name.

79
00:05:52,270 --> 00:05:57,940
And you know that in some cases you'll get not just IP version four IP addresses in response, but also

80
00:05:58,300 --> 00:06:00,220
version six IP addresses.

81
00:06:00,400 --> 00:06:04,780
And also we have verified connectivity with some of the remote servers.

82
00:06:05,230 --> 00:06:11,410
Let's now proceed and in the next lecture I'll explain you how to enable SSH on the Linux server and

83
00:06:11,410 --> 00:06:15,910
afterwards we will connect to Linux server from other computer remotely.

84
00:06:16,300 --> 00:06:17,640
Let's talk about it next.

85
00:06:17,650 --> 00:06:18,250
Bye bye.

