Вы находитесь на странице: 1из 8

Assignment III

Yanqiao Zhan Stevens Institute of Technology


P18. a. What is a whois database?
b. Use various whois databases on the Internet to obtain the names of two DNS servers. Indicate
which whois databases you used.
c. Use nslookup on your local host to send DNS queries to three DNS servers: your local DNS
server and the two DNS servers you found in part (b). Try querying for Type A, NS, and MX
reports. Summarize your findings.
d. Use nslookup to find a Web server that has multiple IP addresses. Does the Web server of your
institution (school or company) have multiple IP addresses?
e. Use the ARIN whois database to determine the IP address range used by your university.
f. Describe how an attacker can use whois databases and the nslookup tool to perform
reconnaissance on an institution before launching an attack.
g. Discuss why whois databases should be publicly available.

My Answer:
a.Whois database is an online repository of information associated with registered domain
names. Store the registered users and assignees of an Internet resource.

b.The whois databases is who.is, one DNS server for www.baidu.com is dns.baidu.com.
Another whois database is kloth.net, one DNS server for www.youtube.com is youtube-
ui.l.google.com.

c.My local DNS server is recorded in /etc/resolv.conf file. My local DNS server is
75.75.75.75(cdns01.comcast.net), www.baidu.com DNS server address is 202.108.22.220 and
www.youtube.com DNS server address is 173.194.113.73.
Type A, NS and MX have different meanings of command.
A record the Fully Qualified Domain Name and is the location of the domain name in the DNS
tree to an IPv4 address.
NS record of a map of primary and secondary name servers that are authoritative for that domain
MX record of a map of mail exchange servers for a domain.

d.If I use nslookup at www.google.com, then the result looks like figure 1.1, it returns multiply
IP address which are all point to www.google.com. My school’s website is www.stevens.edu, the
nslookup result is like figure 1.2, so my school doesn’t have multiple IP address.

Page 1 of 8
!
figure 1.1

!
figure 1.2

e.By using the ARIN whois database, I get the Stevens’s IP address range, like figure 1.3, net
range between 107.20.0.0 - 127.23.255.255

Page 2 of 8
figure 1.3

f.The attacker can gain the dns server address, ip address, ip address range, etc essential
information from whois and nslookup tool. After the attacker know these information, he may set
up a DDos within the ip address range, and spoof the website’s dns server address, causing the
name server to return an incorrect IP address.

g.When whois database is publicly available, user and system administrator can verify the
validity of the website. Also as the Internet is unsteady, so if one ip address is unavailable, then
from whois database we can gain other ip address is it has.

P19. In this problem, we use the useful dig tool available on Unix and Linux hosts to explore the
hierarchy of DNS servers. Recall that in Figure 2.21, a DNS server higher in the DNS hierarchy
delegates a DNS query to a DNS server lower in the hierarchy, by sending back to the DNS
client the name of that lower-level DNS server. First read the man page for dig, and then answer
the following questions.
a. Starting with a root DNS server (from one of the root servers [a-m].rootservers.net), initiate a
sequence of queries for the IP address for your department’s Web server by using dig. Show the
list of the names of DNS servers in the delegation chain in answering your query.
b. Repeat part a) for several popular Web sites, such as google.com, yahoo.com, or amazon.com.

My Answer:
a.CS department web server is www.cs.stevens.edu.
The commands I type in are below:
dig @a.root-servers.net www.cs.stevens.edu
;; AUTHORITY SECTION:
edu. 172800 IN NS a.edu-servers.net.
edu. 172800 IN NS c.edu-servers.net.
edu. 172800 IN NS d.edu-servers.net.
edu. 172800 IN NS f.edu-servers.net.
edu. 172800 IN NS g.edu-servers.net.
edu. 172800 IN NS l.edu-servers.net.

dig @a.edu-servers.net www.cs.stevens.edu


; AUTHORITY SECTION:
stevens.edu. 172800 IN NS nrac.stevens-tech.edu.
stevens.edu. 172800 IN NS sitult.stevens-tech.edu.
stevens.edu. 172800 IN NS drdns.stevens-tech.edu.

dig @nrac.stevens-tech.edu www.cs.stevens.edu


;; ANSWER SECTION:
www.cs.stevens.edu. 3600 IN CNAME www.cs.stevens-tech.edu.
www.cs.stevens-tech.edu. 604800 IN A 155.246.89.84

;; AUTHORITY SECTION:
cs.stevens-tech.edu. 3600 IN NS domcon11.campus.stevens-tech.edu.
cs.stevens-tech.edu. 3600 IN NS domcon13.campus.stevens-tech.edu.

Page 3 of 8
cs.stevens-tech.edu. 3600 IN NS domcon12.campus.stevens-tech.edu.

Authority section means the lower-level DNS servers that can continue to search the destination IP
address.
Answer section means the domain name has been matched.
In the third dig command return value, it has a new field called ANSWER SECTION, in this
section we can see our destination www.cs.stevens-tech.com. It’s the CNAME of
www.cs.stevens.edu, and the ip address is in 155.246.89.84.

b. To google.com:
dig @a.root-servers.net google.com
;; AUTHORITY SECTION:
com. 172800 IN NS a.gtld-servers.net.
com. 172800 IN NS b.gtld-servers.net.
com. 172800 IN NS c.gtld-servers.net.
com. 172800 IN NS d.gtld-servers.net.
com. 172800 IN NS e.gtld-servers.net.
com. 172800 IN NS f.gtld-servers.net.
com. 172800 IN NS g.gtld-servers.net.
com. 172800 IN NS h.gtld-servers.net.
com. 172800 IN NS i.gtld-servers.net.
com. 172800 IN NS j.gtld-servers.net.
com. 172800 IN NS k.gtld-servers.net.
com. 172800 IN NS l.gtld-servers.net.
com. 172800 IN NS m.gtld-servers.net.

dig @a.gtld-servers.net google.com


;; AUTHORITY SECTION:
google.com. 172800 IN NS ns2.google.com.
google.com. 172800 IN NS ns1.google.com.
google.com. 172800 IN NS ns3.google.com.
google.com. 172800 IN NS ns4.google.com.

dig @ns1.google.com google.com


;; ANSWER SECTION:
google.com. 300 IN A 216.58.219.206

To yahoo.com:
dig @a.root-servers.net yahoo.com
;; AUTHORITY SECTION:
com. 172800 IN NS a.gtld-servers.net.
com. 172800 IN NS b.gtld-servers.net.
com. 172800 IN NS c.gtld-servers.net.
com. 172800 IN NS d.gtld-servers.net.
com. 172800 IN NS e.gtld-servers.net.
com. 172800 IN NS f.gtld-servers.net.
com. 172800 IN NS g.gtld-servers.net.
com. 172800 IN NS h.gtld-servers.net.
com. 172800 IN NS i.gtld-servers.net.
com. 172800 IN NS j.gtld-servers.net.
com. 172800 IN NS k.gtld-servers.net.
com. 172800 IN NS l.gtld-servers.net.

Page 4 of 8
com. 172800 IN NS m.gtld-servers.net.

dig @a.gtld-servers.net yahoo.com


;; AUTHORITY SECTION:
yahoo.com. 172800 IN NS ns1.yahoo.com.
yahoo.com. 172800 IN NS ns5.yahoo.com.
yahoo.com. 172800 IN NS ns2.yahoo.com.
yahoo.com. 172800 IN NS ns3.yahoo.com.
yahoo.com. 172800 IN NS ns4.yahoo.com.

dig @ns1.yahoo.com yahoo.com


;; ANSWER SECTION:
yahoo.com. 1800 IN A 98.138.253.109
yahoo.com. 1800 IN A 206.190.36.45
yahoo.com. 1800 IN A 98.139.183.24

Finally, we get an answer section contains three yahoo.com ip address.

To amazon.com:
dig @a.root-servers.net amazon.com
;; AUTHORITY SECTION:
com. 172800 IN NS a.gtld-servers.net.
com. 172800 IN NS b.gtld-servers.net.
com. 172800 IN NS c.gtld-servers.net.
com. 172800 IN NS d.gtld-servers.net.
com. 172800 IN NS e.gtld-servers.net.
com. 172800 IN NS f.gtld-servers.net.
com. 172800 IN NS g.gtld-servers.net.
com. 172800 IN NS h.gtld-servers.net.
com. 172800 IN NS i.gtld-servers.net.
com. 172800 IN NS j.gtld-servers.net.
com. 172800 IN NS k.gtld-servers.net.
com. 172800 IN NS l.gtld-servers.net.
com. 172800 IN NS m.gtld-servers.net.

dig @a.gtld-servers.net amazon.com


;; AUTHORITY SECTION:
amazon.com. 172800 IN NS pdns1.ultradns.net.
amazon.com. 172800 IN NS pdns6.ultradns.co.uk.
amazon.com. 172800 IN NS ns1.p31.dynect.net.
amazon.com. 172800 IN NS ns3.p31.dynect.net.
amazon.com. 172800 IN NS ns2.p31.dynect.net.
amazon.com. 172800 IN NS ns4.p31.dynect.net.

dig @ns1.p31.dynect.net amazon.com


;; ANSWER SECTION:
amazon.com. 60 IN A 205.251.242.54
amazon.com. 60 IN A 176.32.98.166
amazon.com. 60 IN A 72.21.215.232

Finally, we get the answer section contains three amazon.com ip address.

Page 5 of 8
P20. Suppose you can access the caches in the local DNS servers of your department. Can you
propose a way to roughly determine the Web servers (outside your department) that are most
popular among the users in your department? Explain.

My Answer:
In the local DNS servers, we can build a IP address collection of least recent frequent visit. So
the most recent frequent visit web server will always stay in the collection and at the most
beginning of the collection.

P21. Suppose that your department has a local DNS server for all computers in the department.
You are an ordinary user (i.e., not a network/system administrator). Can you determine if an
external Web site was likely accessed from a computer in your department a couple of seconds
ago? Explain.

My Answer:
We can use dig command to determine whether there is a cache in local DNS server. For
example, if someone from a computer in your department has just visited www.exampl.com a
couple of seconds ago. Now if you type in dig @localdnsaddress www.example.com, there
should appear a answer section with the www.example.com’s IP address.

P22. Consider distributing a file of F = 15 Gbits to N peers. The server has an upload rate of us
= 30 Mbps, and each peer has a download rate of di = 2 Mbps and an upload rate of u . For N =
10, 100, and 1,000 and u = 300 Kbps, 700 Kbps, and 2 Mbps, prepare a chart giving the
minimum distribution time for each of the combinations of N and u for both client-server
distribution and P2P distribution.

My Answer:
Client-server distribution model: Dc-s>=max{NF/us, F/dmin}
P2P distribution model: DP2P>=max{F/us, F/dmin, NF/(us+sum of ui)}
For N=10, 100, 1,000 and u=300Kbps, 700Kbps, and 2Mbps, we have the Dc-s and DP2P show in
form 1 respectively.
Additionally, I simply use 15Gbits=15,000 Mbits, and 300 Kbps=0.3Mbps, etc.
Dc-s 10 100 1000

300Kbps 7,500s 50,000s 500,000s

700Kbps 7,500s 50,000s 500,000s

2Mbps 7,500s 50,000s 500,000s

Page 6 of 8
DP2P 10 100 1000

300Kbps 7500s 25,000s 45,454s

700Kbps 7500s 15,000s 20,548s

2Mbps 7500s 7,500s 7,500s

The char of distribution time is like figure 1.4

Dc-s
10 100 1000
5d 18h 53m 20s

4d 8h 10m

2d 21h 26m 40s

1d 10h 43m 20s

0
300Kbps 700Kbps 2Mbps

Dp2p
10 100 1000
12h 37m 50s

9h 28m 22s 500ms

6h 18m 55s

3h 9m 27s 500ms

0
300Kbps 700Kbps 2Mbps

Page 7 of 8
P25. Consider an overlay network with N active peers, with each pair of peers having an active
TCP connection. Additionally, suppose that the TCP connections pass through a total of M
routers. How many nodes and edges are there in the corresponding overlay network?

My Answer:
There are N nodes, and N*(N-1)/2 edges.

Page 8 of 8

Вам также может понравиться