Professional Documents
Culture Documents
Computer Networks
Lab Assignment 1
Submitted to:
DR. Waqas Ahmed
Submitted by:
Muhammad Nawaf Shahid
(SP19-BSE-081)
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.
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