WEBVTT - This file was automatically generated by VIMEO

0
00:00:05.400 --> 00:00:08.700
Hello and welcome back. So in this video we are

1
00:00:08.700 --> 00:00:11.600
 going to continue our networking commands for

2
00:00:11.600 --> 00:00:13.800
 Linux. So let's quickly begin.

3
00:00:14.500 --> 00:00:17.900
So the command that we are going to see is used

4
00:00:17.900 --> 00:00:20.400
 to display the DNS IP address

5
00:00:20.400 --> 00:00:23.400
 for the domain name. Yes, we have already

6
00:00:23.400 --> 00:00:26.500
 seen commands to identify the DNS records

7
00:00:26.500 --> 00:00:30.000
 and DNS information about the target domain

8
00:00:29.300 --> 00:00:32.900
 using the command dig now

9
00:00:32.900 --> 00:00:35.200
 we're going to use the next command which

10
00:00:35.200 --> 00:00:38.500
 is host for that. You simply need to type host and

11
00:00:38.500 --> 00:00:40.600
 the targeted domain name.

12
00:00:41.700 --> 00:00:45.100
And you can see we got an instant response which

13
00:00:44.100 --> 00:00:47.800
 says google.com has

14
00:00:47.800 --> 00:00:51.300
 a address which is this so this is the ipv4 address.

15
00:00:51.900 --> 00:00:54.300
As well as we are being given

16
00:00:54.300 --> 00:00:57.100
 a IPv6 address, which is over here.

17
00:00:57.800 --> 00:01:00.800
Also, we get to see that google.com

18
00:01:00.800 --> 00:01:04.300
 mail, which is the MX records is

19
00:01:03.300 --> 00:01:07.000
 handled by these MX

20
00:01:06.400 --> 00:01:09.200
 records and for obvious reasons. They are

21
00:01:09.200 --> 00:01:10.800
 using their own mail servers.

22
00:01:11.500 --> 00:01:15.600
similar output which you can see over here for hackify

23
00:01:14.600 --> 00:01:16.100
 DOT in

24
00:01:19.300 --> 00:01:22.500
and you can see hackify dot in has a address which is this

25
00:01:22.500 --> 00:01:23.300
 IP address.

26
00:01:24.900 --> 00:01:27.800
The mail server that has been used by hackedify

27
00:01:27.800 --> 00:01:30.300
 as google.com. Let's see

28
00:01:30.300 --> 00:01:31.700
 the same for apple.com.

29
00:01:33.400 --> 00:01:35.600
So the command is going to be host apple.com.

30
00:01:36.500 --> 00:01:39.100
You can see apple.com has the IP address which is

31
00:01:39.100 --> 00:01:39.500
 this.

32
00:01:40.400 --> 00:01:43.600
The male is being handled by their private mail

33
00:01:43.600 --> 00:01:45.700
 servers as you can see over here.

34
00:01:46.500 --> 00:01:49.200
So I hope you guys understood how you can use the command which

35
00:01:49.200 --> 00:01:49.800
 is host.

36
00:01:51.100 --> 00:01:54.700
Let's quickly see a new command, which is nslookup.

37
00:01:55.500 --> 00:01:58.600
So nslookup is very very handy to identify

38
00:01:58.600 --> 00:02:01.600
 the name servers for the targeted domain

39
00:02:01.600 --> 00:02:04.500
 names. For example, let's see the

40
00:02:04.500 --> 00:02:07.500
 NS record for google.com.

41
00:02:08.600 --> 00:02:09.500
And you can see over here.

42
00:02:10.800 --> 00:02:13.300
This is the DNS server, which is being used

43
00:02:13.300 --> 00:02:17.000
 to query this result. And the IP

44
00:02:16.100 --> 00:02:19.400
 address is 8.8.8.8, which

45
00:02:19.400 --> 00:02:22.500
 is the Google DNS servers default IP address.

46
00:02:23.600 --> 00:02:26.900
Also, you can see over here the unknown authoritative

47
00:02:26.900 --> 00:02:29.800
 answer for google.com. Is this

48
00:02:29.800 --> 00:02:32.400
 IP address? Which belongs to

49
00:02:32.400 --> 00:02:35.400
 Google? Let's get back over here on this

50
00:02:35.400 --> 00:02:38.600
 terminal. Alright, so the next command that we

51
00:02:38.600 --> 00:02:41.400
 are going to see is used to display

52
00:02:41.400 --> 00:02:43.700
 the network address of the host name.

53
00:02:44.400 --> 00:02:47.800
Now I have switched back to the parrot OS.

54
00:02:48.400 --> 00:02:51.600
So let's quickly type hostname space hyphen, I

55
00:02:51.600 --> 00:02:54.500
 and hit enter and you can see the host name

56
00:02:54.500 --> 00:02:57.500
 of this device is basically the

57
00:02:57.500 --> 00:02:59.700
 loopback IP address. Perfect.

58
00:03:00.600 --> 00:03:03.800
Now if you want to display all the local IP

59
00:03:03.800 --> 00:03:07.300
 addresses of this host for that, you can simply type capital

60
00:03:06.300 --> 00:03:08.500
 I and hit enter.

61
00:03:09.300 --> 00:03:12.100
And here you can see the local IP addresses that

62
00:03:12.100 --> 00:03:15.900
 have been assigned to this system are

63
00:03:15.900 --> 00:03:18.600
 being shown over here and you can see there are total three

64
00:03:18.600 --> 00:03:22.300
 IP addresses which are being shown because this

65
00:03:21.300 --> 00:03:25.700
 system contains three network adapters.

66
00:03:26.800 --> 00:03:29.100
So I hope you guys understood how you can

67
00:03:29.100 --> 00:03:32.300
 see the hosting the local IP address

68
00:03:32.300 --> 00:03:35.300
 for the host as well as all the local

69
00:03:35.300 --> 00:03:38.600
 IP addresses for the host that contains

70
00:03:38.600 --> 00:03:40.000
 different adapters.

71
00:03:40.600 --> 00:03:41.000
Thank you.
