You are on page 1of 9

Data Comm and

Computer Networks
Lab Assignment 1

Submitted to:
DR. Waqas Ahmed

Submitted by:
Muhammad Nawaf Shahid
(SP19-BSE-081)

March 27th ,2021

Department of Computer Science


Comsats University, Islamabad
Activity 1
Q1: Run nslookup to obtain the IP address of a Web server in Asia.
What is the IP address of that server?
Ans: I performed nslookup for covid.gov.pk and the Ip address is 192.124.249.58

Q2: Run nslookup to determine the authoritative DNS servers for a


university in Europe.
Ans: The University that I checked is Technical University of Munich and the authoritative
DNS servers is dns1.lrz.de as seen from the screenshot below.
Q3: Run nslookup so that one of the DNS servers obtained in
Question 2 is queried for the mail servers for Yahoo! mail. What is
its IP address?
Ans: The IP address is 69.147.88.8

ACTIVITY 2:

Q1: Locate the DNS query and response messages. Are then sent
over UDP or TCP?
Ans: They are sent over User Datagram Protocol also known as UDP.
Q2: What is the destination port for the DNS query message? What
is the source port of DNS response message?
Ans: The destination port for DNS query is 53 and the source port is also 53.
Q3: To what IP address is the DNS query message sent? Use
ipconfig to determine the IP address of your local DNS server. Are
these two IP addresses the same?
Ans: The address to which DNS query is sent is 192.168.10.1. Yes, both the IP addresses are
same as can be seen from the screenshot below.

Q4: Examine the DNS query message. What “TYPE” of DNS query
is it? Does the query message contain any “answers”?
Ans: The query was of “type A” and contained NO answers.
Q5: Examine the DNS response message. How many “answers” are
provided? What do each of these answers contain?
Ans: The DNS response message contained three answer and that was the address of the
website.

Q6: Consider the subsequent TCP SYN packet sent by your host.
Does the destination IP address of the SYN packet correspond to
any of the IP addresses provided in the DNS response message?
Ans: Yes, the destination Ip address of the SYN packets corresponds to the to the Ip addresses
given in DNS response message. The IP address is 104.16.44.99.

Q7: This web page contains images. Before retrieving each image,
does your host issue new DNS queries?
Ans: No, my host did not generate new DNS queries.
ACTIVITY 3:

Q1: What is the destination port for the DNS query message? What
is the source port of DNS response message?
Ans: The destination port of DNS query message is 53. The source port of DNS response message is
also 53.

Figure 1Source for Response message


Q2: To what IP address is the DNS query message sent? Is this the
IP address of your default local DNS server?
Ans: It is sent to 192.168.10.1 which is same as the ip address of my default local dns server as
seen from the screenshot below

Q3: Examine the DNS query message. What “Type” of DNS query
is it? Does the query message contain any “answers”?
Ans: The query is of Type A and it does not contain any answers.
Q4: Examine the dns response message. How many “answers” are
provided? What do each of these answers contain?
Ans: There are no answers in query response message.

ACTIVITY 4:

Q1: To what IP address is the DNS query message sent? Is this the
IP address of your default local DNS server?
Ans: The DNS query message is sent to 192.168.10.1 which is same as my default local DNS
server.

Q2: Examine the DNS query message. What “Type” of DNS query
is it? Does the query message contain any “answers”?
Ans: The query is of Type NS and it does not contain any answers as seen from the screenshot
below.
Q3: Examine the DNS response message. What MIT name servers
does the response message provide? Does this response message also
provide the IP addresses of the MIT name servers?
Ans: The response message does not provide the ip address. The name servers provided are
dscb.akamaiedge.net

You might also like