Professional Documents
Culture Documents
25/02/2024
Exercise #1
1. Run nslookup to obtain the IP address of a Web server of UET.
a) By explicitly querying the Name Servers (NS) for the domain google.com, the dig
google.com ns command will provide the authoritative name servers in charge of the
domain.
However, if you run dig google.com without any other parameters, it will run a
default query for the domain and return a range of data, such as the IP addresses
connected to it, any additional records like TXT or MX records, and the DNS
records' default TTL (time to live).
b) There are four servers for google.com
3. Run this command google.com mx. What information does the
output of this version of the command provide?
To retrieve the mail exchange (MX) records for the domain google.com, use the command
"google.com mx". The mail server designated by MX records is in charge of receiving
emails on behalf of the domain. Usually, the results of this query show the MX records
connected to the google.com domain. It displays each mail server's priority (greater numbers
denote a higher priority) along with the mail server's domain name. Email delivery systems
use this information to decide which recipients inside the google.com domain to route emails
meant for. It's important to remember, though, that the actual result might change based on
the particular tool or technique utilised to carry out the command.
4.
a. Run a command to find the number of IP addresses that are
associated with yahoo.com.
b. Run a command to find the number of name servers that there are
for yahoo.com.
5. Run this command: dig www.google.com
a. What IP addresses are associated with www.google.com?
b. How many name servers are there for www.google.com?
c. What relationship (if any) do you see between google.com
and www.google.com?
b) dig google.com and dig mail.google.com are related in that they are both commands used to get
DNS data for various subdomains under google.com. Domain is what the dig command stands for.
Domain Name Server data is gathered by Information Groper. It is helpful for both teaching and
debugging networks. dig google.com searches the A record of the root domain google.com,
whereas dig mail.google.com queries the A record of the mail subdomain of google.com. This is
the primary distinction between the two commands. The address record that associates an IP
address with a hostname is called the A record.
7. Run the command: dig microsoft.com
Note the query time :109 msec
C Repeat the previous command and note the query time (31 msec)
d. Explain the reasons for any observed differences in the query times
for each of the commands in parts a. - d.
There is a variation of query time may be just because of server load ,Geographical distance
And load balancing ,caching etc…
8. Run each of the following commands and describe what the output represents in
each case (also specify what each domain represents).
a) dig edu
The name server (NS) entries for the.edu domain would be retrieved using this command. If you have
any particular queries concerning DNS or any other subject
b) dig edu ns Digns: The authoritative name servers for the domain "example.com" will be found by
a DNS server query using this command. Substitute the desired domain name for "example.com".
11. Run this command: dig www.mit.edu +trace